aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/interface_tree_model.cpp
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2016-10-25 14:27:56 +0200
committerRoland Knall <rknall@gmail.com>2016-10-27 23:54:04 +0000
commit6500a660c2285aa558be58b084de9554fccdfc09 (patch)
treebc5e12962c7864464f6ac9350c17110eefaf21f8 /ui/qt/interface_tree_model.cpp
parent1fae14257a8a7ade813930097a12dd3e555a9f76 (diff)
ManageInterfacesDialog: New handling of pipes
This moves the handling of pipes to the new InterfaceTreeModel as well. It also includes a new PathChooserDelegate and cache handling for adding data to an interface list without putting it into storage Change-Id: Id255a81161b4da517e26127abe8ea7f5eb36d55a Reviewed-on: https://code.wireshark.org/review/18497 Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/interface_tree_model.cpp')
-rw-r--r--ui/qt/interface_tree_model.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/qt/interface_tree_model.cpp b/ui/qt/interface_tree_model.cpp
index 062ef4e792..bae432be0b 100644
--- a/ui/qt/interface_tree_model.cpp
+++ b/ui/qt/interface_tree_model.cpp
@@ -135,6 +135,10 @@ QVariant InterfaceTreeModel::data(const QModelIndex &index, int role) const
{
return QString(device.name);
}
+ else if ( col == IFTREE_COL_PIPE_PATH )
+ {
+ return QString(device.if_info.name);
+ }
else if ( col == IFTREE_COL_CAPTURE_FILTER )
{
if ( device.cfilter && strlen(device.cfilter) > 0 )
@@ -264,10 +268,14 @@ QVariant InterfaceTreeModel::headerData(int section, Qt::Orientation orientation
{
return tr("Friendly Name");
}
- else if ( section == IFTREE_COL_INTERFACE_NAME )
+ else if ( section == IFTREE_COL_NAME )
{
return tr("Interface Name");
}
+ else if ( section == IFTREE_COL_PIPE_PATH )
+ {
+ return tr("Local Pipe Path");
+ }
else if ( section == IFTREE_COL_INTERFACE_COMMENT )
{
return tr("Comment");