diff options
| author | Vishesh Handa <[email protected]> | 2014-03-24 10:48:53 +0100 |
|---|---|---|
| committer | Vishesh Handa <[email protected]> | 2014-03-24 14:38:15 +0100 |
| commit | 76e5fd48349bb521e5403d694f1dc45f2d22d1ae (patch) | |
| tree | 26cb8385f157984e901487363aee5793d7b081cb /src/search/dolphinfacetswidget.h | |
| parent | 3e576a16597b154a137604efd16323e1a1338f60 (diff) | |
Dolphin Facet Widget: Convert type selection into radio buttons
They were previously checkboxes. Most files cannot have more than 1 type
considering that the exposed types were "Document", "Image", "Video" and
"Audio".
Also, it is not very simple in baloo to search through ORs for types.
Not through the exposed API anyway.
REVIEW: 117015
Diffstat (limited to 'src/search/dolphinfacetswidget.h')
| -rw-r--r-- | src/search/dolphinfacetswidget.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/search/dolphinfacetswidget.h b/src/search/dolphinfacetswidget.h index 526fe1c79..1fd1683da 100644 --- a/src/search/dolphinfacetswidget.h +++ b/src/search/dolphinfacetswidget.h @@ -57,7 +57,7 @@ public: #ifdef HAVE_BALOO Baloo::Term ratingTerm() const; - QStringList facetTypes() const; + QString facetType() const; #endif signals: @@ -65,13 +65,6 @@ signals: 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. @@ -80,10 +73,11 @@ private: QButtonGroup* group); private: - QCheckBox* m_documents; - QCheckBox* m_images; - QCheckBox* m_audio; - QCheckBox* m_videos; + QRadioButton* m_anyType; + QRadioButton* m_documents; + QRadioButton* m_images; + QRadioButton* m_audio; + QRadioButton* m_videos; QRadioButton* m_anytime; QRadioButton* m_today; |
