Changeset View
Changeset View
Standalone View
Standalone View
src/ui/elfmodel/sectionproxymodel.h
Show All 12 Lines | 1 | /* | |||
---|---|---|---|---|---|
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef SECTIONPROXYMODEL_H | 18 | #ifndef SECTIONPROXYMODEL_H | ||
19 | #define SECTIONPROXYMODEL_H | 19 | #define SECTIONPROXYMODEL_H | ||
20 | 20 | | |||
21 | #include <KRecursiveFilterProxyModel> | 21 | #include <QSortFilterProxyModel> | ||
22 | 22 | | |||
23 | /** Restrict the structure model to just files and sections. */ | 23 | /** Restrict the structure model to just files and sections. */ | ||
24 | class SectionProxyModel : public KRecursiveFilterProxyModel | 24 | class SectionProxyModel : public QSortFilterProxyModel | ||
25 | { | 25 | { | ||
26 | Q_OBJECT | 26 | Q_OBJECT | ||
27 | public: | 27 | public: | ||
28 | explicit SectionProxyModel(QObject* parent = nullptr); | 28 | explicit SectionProxyModel(QObject* parent = nullptr); | ||
29 | ~SectionProxyModel(); | 29 | ~SectionProxyModel(); | ||
30 | 30 | | |||
31 | bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const final override; | 31 | bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const final override; | ||
32 | }; | 32 | }; | ||
33 | 33 | | |||
34 | #endif // SECTIONPROXYMODEL_H | 34 | #endif // SECTIONPROXYMODEL_H |