summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/applnksearch.cpp8
-rw-r--r--core/pim/osearch/applnksearch.h2
-rw-r--r--core/pim/osearch/searchgroup.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp
index d5b2930..acf650a 100644
--- a/core/pim/osearch/applnksearch.cpp
+++ b/core/pim/osearch/applnksearch.cpp
@@ -54,2 +54,10 @@ void AppLnkSearch::insertItem( void *rec )
new AppLnkItem( this, (AppLnk*)rec );
}
+
+void AppLnkSearch::setSearch(QRegExp re)
+{
+ expanded = false;
+ setOpen( false );
+ SearchGroup::setSearch( re );
+}
+
diff --git a/core/pim/osearch/applnksearch.h b/core/pim/osearch/applnksearch.h
index d88a8ce..6bb7486 100644
--- a/core/pim/osearch/applnksearch.h
+++ b/core/pim/osearch/applnksearch.h
@@ -28,5 +28,5 @@ public:
~AppLnkSearch();
-protected:
+ virtual void setSearch(QRegExp);
virtual void load();
virtual int search();
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h
index ebe1193..35949f0 100644
--- a/core/pim/osearch/searchgroup.h
+++ b/core/pim/osearch/searchgroup.h
@@ -40,5 +40,4 @@ protected:
virtual int search() = 0;
virtual void insertItem( void* ) = 0;
-private:
void clearList();
QString _name;