10 #ifndef DISSECTOR_TABLES_MODEL_H 11 #define DISSECTOR_TABLES_MODEL_H 15 #include <ui/qt/models/tree_model_helpers.h> 17 #include <QSortFilterProxyModel> 25 QString tableName()
const {
return tableName_;}
26 QString shortName()
const {
return shortName_;}
43 enum DissectorTablesColumn {
49 QModelIndex index(
int row,
int column,
50 const QModelIndex & = QModelIndex())
const;
51 QModelIndex parent(
const QModelIndex &)
const;
52 QVariant data(
const QModelIndex &index,
int role)
const;
54 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
55 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
70 virtual bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const;
72 QVariant headerData(
int section, Qt::Orientation orientation,
73 int role = Qt::DisplayRole)
const;
75 void adjustHeader(
const QModelIndex ¤tIndex);
76 void setFilter(
const QString& filter);
79 bool lessThan(
const QModelIndex &source_left,
const QModelIndex &source_right)
const;
89 #endif // DISSECTOR_TABLES_MODEL_H Definition: dissector_tables_model.h:19
Definition: tree_model_helpers.h:22
Definition: dissector_tables_model.h:35
Definition: dissector_tables_model.h:63