aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_welcome.ui
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2016-10-01 08:54:57 +0200
committerRoland Knall <rknall@gmail.com>2016-10-01 13:18:51 +0000
commit99097dd3c65358a525e40767cc1501c4116c3a4d (patch)
tree1ad9637554aebded5ff4bf8a400a6c3fc2ed4b4e /ui/qt/main_welcome.ui
parentb6ad91520fd602710f5afe4a4eb8787a6bca22d4 (diff)
Interface List: Change display to view/model
This changes the underlying model of the main interface tree. Because of that, we can resort to a view/model approach, enlisting the global interfaces list as only data source. The interface list works identical to the old list, but allows for filtering of the displayed interfaces by type. Only types, which are present and whose interfaces are not hidden, are being displayed for selection. Change-Id: If8475b227daa026dc0ad3d25bc7fe050d5bf2ac3 Reviewed-on: https://code.wireshark.org/review/17940 Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/main_welcome.ui')
-rw-r--r--ui/qt/main_welcome.ui38
1 files changed, 16 insertions, 22 deletions
diff --git a/ui/qt/main_welcome.ui b/ui/qt/main_welcome.ui
index 14ddee5b9c..a820d0384f 100644
--- a/ui/qt/main_welcome.ui
+++ b/ui/qt/main_welcome.ui
@@ -29,6 +29,12 @@
</item>
<item>
<widget class="QWidget" name="childContainer" native="true">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QWidget" name="bannerLayout" native="true">
@@ -186,9 +192,9 @@
</widget>
</item>
<item>
- <widget class="InterfaceTree" name="interfaceTree">
+ <widget class="InterfaceFrame" name="interfaceFrame">
<property name="sizePolicy">
- <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding">
+ <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>1</verstretch>
</sizepolicy>
@@ -199,25 +205,12 @@
<property name="accessibleDescription">
<string>List of available capture interfaces</string>
</property>
- <property name="horizontalScrollBarPolicy">
- <enum>Qt::ScrollBarAlwaysOff</enum>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
</property>
- <property name="uniformRowHeights">
- <bool>true</bool>
+ <property name="frameShadow">
+ <enum>QFrame::Raised</enum>
</property>
- <attribute name="headerVisible">
- <bool>false</bool>
- </attribute>
- <column>
- <property name="text">
- <string notr="true">1</string>
- </property>
- </column>
- <column>
- <property name="text">
- <string notr="true">2</string>
- </property>
- </column>
</widget>
</item>
<item>
@@ -300,9 +293,10 @@ a:hover {
</widget>
<customwidgets>
<customwidget>
- <class>InterfaceTree</class>
- <extends>QTreeWidget</extends>
- <header>interface_tree.h</header>
+ <class>InterfaceFrame</class>
+ <extends>QFrame</extends>
+ <header>interface_frame.h</header>
+ <container>1</container>
</customwidget>
<customwidget>
<class>CaptureFilterCombo</class>