From e2fee8a707e28aacab93e7524f5ca965d6012f27 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 13 Mar 2024 01:21:32 -0400 Subject: Implement filtering. --- mapman/src/groupview.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mapman/src/groupview.hpp') diff --git a/mapman/src/groupview.hpp b/mapman/src/groupview.hpp index ca4cf30..52c1bd0 100644 --- a/mapman/src/groupview.hpp +++ b/mapman/src/groupview.hpp @@ -2,6 +2,7 @@ #define GROUPVIEW_HPP #include +#include #include "mapdump.hpp" class QTableView; @@ -10,6 +11,7 @@ class QLineEdit; class QSpinBox; class QLabel; class QStandardItemModel; +class QSortFilterProxyModel; class map_library; class map_painter; @@ -32,10 +34,12 @@ public slots: private: QTableView *tv; QStandardItemModel *m; + QSortFilterProxyModel *mf; QPushButton *pbadd; QPushButton *pbrem; QLineEdit *tetitle; QLineEdit *teauthor; + QLineEdit *tefilter; QSpinBox *sbh; QSpinBox *sbv; QPushButton *pbapply; -- cgit v1.2.3