Changeset View
Changeset View
Standalone View
Standalone View
gui/ksortfilterproxymodel.h
Show All 36 Lines | |||||
37 | class KSortFilterProxyModel | 37 | class KSortFilterProxyModel | ||
38 | : public QSortFilterProxyModel | 38 | : public QSortFilterProxyModel | ||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | public: | 41 | public: | ||
42 | /*! Constructs a sorting filter model with the given parent. */ | 42 | /*! Constructs a sorting filter model with the given parent. */ | ||
43 | explicit KSortFilterProxyModel(QObject * parent = nullptr); | 43 | explicit KSortFilterProxyModel(QObject * parent = nullptr); | ||
44 | /*! Destroys this sorting filter model. */ | 44 | /*! Destroys this sorting filter model. */ | ||
45 | ~KSortFilterProxyModel() Q_DECL_OVERRIDE; | 45 | ~KSortFilterProxyModel() override; | ||
46 | 46 | | |||
47 | /*! Whether to show the children of a matching parent. | 47 | /*! Whether to show the children of a matching parent. | ||
48 | * This is false by default. */ | 48 | * This is false by default. */ | ||
49 | bool showAllChildren() const; | 49 | bool showAllChildren() const; | ||
50 | /*! Set whether to show the children of a matching parent. | 50 | /*! Set whether to show the children of a matching parent. | ||
51 | * This is false by default. */ | 51 | * This is false by default. */ | ||
52 | void setShowAllChildren(bool showAllChildren); | 52 | void setShowAllChildren(bool showAllChildren); | ||
53 | 53 | | |||
54 | protected: | 54 | protected: | ||
55 | /*! \reimp */ | 55 | /*! \reimp */ | ||
56 | bool filterAcceptsRow ( int source_row, const QModelIndex & source_parent ) const Q_DECL_OVERRIDE; | 56 | bool filterAcceptsRow ( int source_row, const QModelIndex & source_parent ) const override; | ||
57 | KSortFilterProxyModelPrivate * const d_ptr; | 57 | KSortFilterProxyModelPrivate * const d_ptr; | ||
58 | 58 | | |||
59 | Q_DISABLE_COPY( KSortFilterProxyModel ) | 59 | Q_DISABLE_COPY( KSortFilterProxyModel ) | ||
60 | }; | 60 | }; | ||
61 | #endif | 61 | #endif |