Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/FilterProxy.h
Show All 17 Lines | |||||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef FILTERPROXY_H | 22 | #ifndef FILTERPROXY_H | ||
23 | #define FILTERPROXY_H | 23 | #define FILTERPROXY_H | ||
24 | 24 | | |||
25 | #include <QSortFilterProxyModel> | 25 | #include <QSortFilterProxyModel> | ||
26 | 26 | /** | |||
27 | * \brief a Filter proxy for handling search with. | ||||
28 | * | ||||
29 | * Extends QSortFilterProxyModel, is caseInsensitive. | ||||
30 | */ | ||||
27 | class FilterProxy : public QSortFilterProxyModel | 31 | class FilterProxy : public QSortFilterProxyModel | ||
28 | { | 32 | { | ||
29 | Q_OBJECT | 33 | Q_OBJECT | ||
30 | public: | 34 | public: | ||
31 | explicit FilterProxy(QObject* parent = nullptr); | 35 | explicit FilterProxy(QObject* parent = nullptr); | ||
32 | ~FilterProxy() override; | 36 | ~FilterProxy() override; | ||
33 | }; | 37 | }; | ||
34 | 38 | | |||
35 | #endif//FILTERPROXY_H | 39 | #endif//FILTERPROXY_H |