┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/searchcriterionvalue.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-11-13 23:21:47 +0000
committerPeter Penz <[email protected]>2009-11-13 23:21:47 +0000
commit041a2f059422d6e7b600510a086a3527f3b5dd1c (patch)
treeec2aad61a3483bb29287d14ce3f781060c39b25e /src/search/searchcriterionvalue.h
parent3d7b54b21a47e98d1d02c7d21061a6bd43b8d1c7 (diff)
* allow searching for ratings
* minor general cleanups svn path=/trunk/KDE/kdebase/apps/; revision=1048809
Diffstat (limited to 'src/search/searchcriterionvalue.h')
-rw-r--r--src/search/searchcriterionvalue.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/search/searchcriterionvalue.h b/src/search/searchcriterionvalue.h
index 652b58a7c..cabe75cf2 100644
--- a/src/search/searchcriterionvalue.h
+++ b/src/search/searchcriterionvalue.h
@@ -25,6 +25,7 @@
class QComboBox;
class KDateWidget;
+class KRatingWidget;
class KLineEdit;
/**
@@ -111,4 +112,18 @@ public:
QComboBox* m_units;
};
+/** @brief Allows to input a rating value as search criterion. */
+class RatingValue : public SearchCriterionValue
+{
+ Q_OBJECT
+
+public:
+ RatingValue(QWidget* parent = 0);
+ virtual ~RatingValue();
+ virtual QString value() const;
+
+ private:
+ KRatingWidget* m_ratingWidget;
+};
+
#endif // SEARCHCRITERIONVALUE_H