2 * Copyright (C) 2011, 2013 Canonical, Ltd.
5 * Florian Boucault <florian.boucault@canonical.com>
6 * Pawel Stolowski <pawel.stolowski@canonical.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 3.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21#ifndef RATINGSFILTER_H
22#define RATINGSFILTER_H
29#include <UnityCore/RatingsFilter.h>
34class GenericOptionsModel;
35class AbstractFilterOption;
37class Q_DECL_EXPORT RatingsFilter : public Filter
41 Q_PROPERTY(float rating READ rating NOTIFY ratingChanged)
44 explicit RatingsFilter(QObject *parent = nullptr);
47 GenericOptionsModel* options() const override;
51 void ratingChanged(float);
54 void setUnityFilter(unity::dash::Filter::Ptr filter) override;
57 void onActiveChanged(AbstractFilterOption *option);
60 unity::dash::RatingsFilter::Ptr m_unityRatingsFilter;
61 GenericOptionsModel *m_options;
64Q_DECLARE_METATYPE(RatingsFilter*)
66#endif // RATINGSFILTER_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list