┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-11-13 21:03:19 +0000
committerPeter Penz <[email protected]>2009-11-13 21:03:19 +0000
commitbd30bb6ca98374b37db20d14a41542c21acdd5e0 (patch)
tree276188af9fe38b22cd6698a53269fcffac318736 /src/search/dolphinsearchbox.h
parenta87760d22c0213306380322ec6d9e23809ee4c93 (diff)
search finetuning:
* trigger progress information when starting a search * let the information panel hide the meta data for the search string * get the search string from the configurator svn path=/trunk/KDE/kdebase/apps/; revision=1048721
Diffstat (limited to 'src/search/dolphinsearchbox.h')
-rw-r--r--src/search/dolphinsearchbox.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h
index fea7129b1..36bcb0e10 100644
--- a/src/search/dolphinsearchbox.h
+++ b/src/search/dolphinsearchbox.h
@@ -69,6 +69,12 @@ public:
DolphinSearchBox(QWidget* parent = 0);
virtual ~DolphinSearchBox();
+ /**
+ * Returns the text that should be used as input
+ * for searching.
+ */
+ QString text() const;
+
protected:
virtual bool event(QEvent* event);
virtual bool eventFilter(QObject* watched, QEvent* event);
@@ -76,11 +82,17 @@ protected:
signals:
/**
* Is emitted when the user pressed Return or Enter
- * and provides the Nepomuk URL that should be used
+ * and provides the text that should be used as input
* for searching.
*/
- void search(const KUrl& url);
+ void search(const QString& text);
+ /**
+ * Is emitted if the search box gets the focus and
+ * requests the need for a UI that allows to adjust
+ * search options. It is up to the application to ignore
+ * this request.
+ */
void requestSearchOptions();
private slots:
@@ -88,7 +100,6 @@ private slots:
private:
KLineEdit* m_searchInput;
-
DolphinSearchCompleter* m_completer;
};