From 5e25098037571c8a43fd8c407c1758065e1a1548 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 12 Dec 2009 12:23:05 +0000 Subject: allow to restrict the search results by the current folder (including all sub folders) svn path=/trunk/KDE/kdebase/apps/; revision=1061589 --- src/search/dolphinsearchoptionsconfigurator.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/search/dolphinsearchoptionsconfigurator.h') diff --git a/src/search/dolphinsearchoptionsconfigurator.h b/src/search/dolphinsearchoptionsconfigurator.h index 90adea736..e4f7718e2 100644 --- a/src/search/dolphinsearchoptionsconfigurator.h +++ b/src/search/dolphinsearchoptionsconfigurator.h @@ -43,6 +43,9 @@ public: DolphinSearchOptionsConfigurator(QWidget* parent = 0); virtual ~DolphinSearchOptionsConfigurator(); + QString customSearchQuery() const; + KUrl directory() const; + /** * Returns the sum of the configured options and the * custom search query as Nepomuk conform search URL. If the @@ -60,6 +63,13 @@ public slots: */ void setCustomSearchQuery(const QString& searchQuery); + /** + * Sets the directory that is used when the + * "From Here"-location-filter is used. URLs that represent + * already a Nepomuk search URL will be ignored. + */ + void setDirectory(const KUrl& dir); + signals: void searchOptionsChanged(); @@ -97,6 +107,7 @@ private: private: bool m_initialized; + KUrl m_directory; KComboBox* m_locationBox; KComboBox* m_whatBox; QPushButton* m_addSelectorButton; -- cgit v1.3.1