diff options
Diffstat (limited to 'ui/qt/interface_sort_filter_model.h')
-rw-r--r-- | ui/qt/interface_sort_filter_model.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/qt/interface_sort_filter_model.h b/ui/qt/interface_sort_filter_model.h index 08a217747b..d0489cb3e5 100644 --- a/ui/qt/interface_sort_filter_model.h +++ b/ui/qt/interface_sort_filter_model.h @@ -25,9 +25,7 @@ #include <config.h> -#ifdef HAVE_LIBPCAP -#include "ui/capture_globals.h" -#endif +#include "ui/qt/interface_tree_model.h" #include <glib.h> @@ -48,14 +46,20 @@ public: QList<int> typesDisplayed(); + void setColumns(QList<InterfaceTreeColumns> columns); + int mapSourceToColumn(InterfaceTreeColumns mdlIndex); + protected: bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const; + bool filterAcceptsColumn(int source_column, const QModelIndex & source_parent) const; private: bool _filterHidden; QList<int> displayHiddenTypes; + QList<InterfaceTreeColumns> _columns; + private slots: void resetPreferenceData(); }; |