From 27a8c55ec9207ae00da91596ba390e835a066782 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 20 Apr 2011 21:19:46 +0200 Subject: Search improvements Use Query::titleFromQueryUrl() to give a hint what kind of information is shown to the user. --- src/search/dolphinsearchbox.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/search/dolphinsearchbox.h') 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 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; }; -- cgit v1.3.1