┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-04-20 21:19:46 +0200
committerPeter Penz <[email protected]>2011-04-20 21:21:26 +0200
commit27a8c55ec9207ae00da91596ba390e835a066782 (patch)
tree2536725509fcff07bdc7fa23dd6ebe34668b3fcc /src/search/dolphinsearchbox.h
parentae488b13186a4cb5d0bc5d7f23b07467d6638979 (diff)
Search improvements
Use Query::titleFromQueryUrl() to give a hint what kind of information is shown to the user.
Diffstat (limited to 'src/search/dolphinsearchbox.h')
-rw-r--r--src/search/dolphinsearchbox.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h
index 27561481d..2d4f31b3b 100644
--- a/src/search/dolphinsearchbox.h
+++ b/src/search/dolphinsearchbox.h
@@ -25,11 +25,12 @@
#include <QWidget>
class AbstractSearchFilterWidget;
-class QLabel;
class KLineEdit;
class KSeparator;
class QFormLayout;
class QPushButton;
+class QScrollArea;
+class QLabel;
class QVBoxLayout;
/**
@@ -90,8 +91,11 @@ public:
* @param readOnly If set to true the searchbox cannot be modified
* by the user and acts as visual indicator for
* an externally triggered search query.
+ * @param query If readOnly is true this URL will be used
+ * to show a human readable information about the
+ * query.
*/
- void setReadOnly(bool readOnly);
+ void setReadOnly(bool readOnly, const KUrl& query = KUrl());
bool isReadOnly() const;
protected:
@@ -157,16 +161,17 @@ private:
QVBoxLayout* m_topLayout;
+ QLabel* m_searchLabel;
KLineEdit* m_searchInput;
+ QScrollArea* m_optionsScrollArea;
QPushButton* m_fileNameButton;
QPushButton* m_contentButton;
KSeparator* m_separator;
QPushButton* m_fromHereButton;
QPushButton* m_everywhereButton;
- QLabel* m_infoLabel;
-
KUrl m_searchPath;
+ KUrl m_readOnlyQuery;
QTimer* m_startSearchTimer;
};