summaryrefslogtreecommitdiff
path: root/ui/qt/interface_tree_model.h
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2016-10-17 15:01:24 +0200
committerAnders Broman <a.broman58@gmail.com>2016-10-19 07:43:45 +0000
commit864f750be560a7a739c7453f19a8f5679cf7d6b3 (patch)
treee7d4c74c127a477c13f70ee69c82c6f06274f9a1 /ui/qt/interface_tree_model.h
parent5cbdbecc35f77c40142e2e5389e553931490eea0 (diff)
downloadwireshark-864f750be560a7a739c7453f19a8f5679cf7d6b3.tar.gz
ManageInterfacesDialog: Implement View/Data Model
Implement the same interface view/data model as used for the interface_tree selection in this dialog, to encapsulate all access to global_capture_devices from the dialog. Change-Id: I0e568fe236d077befa2a79765638db8bb3ed1a3f Reviewed-on: https://code.wireshark.org/review/18062 Petri-Dish: Roland Knall <rknall@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/interface_tree_model.h')
-rw-r--r--ui/qt/interface_tree_model.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/interface_tree_model.h b/ui/qt/interface_tree_model.h
index 769eea92e2..43be4919a9 100644
--- a/ui/qt/interface_tree_model.h
+++ b/ui/qt/interface_tree_model.h
@@ -47,6 +47,7 @@ enum InterfaceTreeColumns
#endif
IFTREE_COL_NAME,
IFTREE_COL_INTERFACE_NAME,
+ IFTREE_COL_INTERFACE_COMMENT,
IFTREE_COL_HIDDEN,
IFTREE_COL_TYPE,
IFTREE_COL_STATS,
@@ -63,6 +64,7 @@ public:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data (const QModelIndex &index, int role = Qt::DisplayRole) const;
+ QVariant headerData(int section, Qt::Orientation orientation, int role) const;
void updateStatistic(unsigned int row);
#ifdef HAVE_LIBPCAP