From 4fad8f8f530211839f431819031327275240f7f6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 10 May 2012 22:40:51 +0200 Subject: Reimplement search-filters BUG: 270721 BUG: 280377 FIXED-IN: 4.9.0 --- src/search/dolphinfacetswidget.h | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'src/search/dolphinfacetswidget.h') diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h index 916e05608..65734aa66 100644 --- a/src/search/dolphinfacetswidget.h +++ b/src/search/dolphinfacetswidget.h @@ -22,6 +22,12 @@ #include +#include +#ifdef HAVE_NEPOMUK + #include +#endif + +class QButtonGroup; class QCheckBox; class QRadioButton; @@ -29,7 +35,7 @@ class QRadioButton; * @brief Allows to filter search-queries by facets. * * TODO: The current implementation is a temporary - * workaround for the 4.10 release and represents no + * workaround for the 4.9 release and represents no * real facets-implementation yet: There have been * some Dolphin specific user-interface and interaction * issues since 4.6 by embedding the Nepomuk facet-widget @@ -49,6 +55,29 @@ public: explicit DolphinFacetsWidget(QWidget* parent = 0); virtual ~DolphinFacetsWidget(); +#ifdef HAVE_NEPOMUK + Nepomuk::Query::Term facetsTerm() const; +#endif + +signals: + void facetChanged(); + +private: + /** + * @return New checkbox which is connected to the + * slotFacedChanged() slot whenever it has + * been toggled. + */ + QCheckBox* createCheckBox(const QString& text); + + /** + * @return New radiobutton which is connected to the + * slotFacedChanged() slot whenever it has + * been toggled. + */ + QRadioButton* createRadioButton(const QString& text, + QButtonGroup* group); + private: QCheckBox* m_documents; QCheckBox* m_images; -- cgit v1.3.1