diff options
author | Gerald Combs <gerald@zing.org> | 2014-12-20 14:11:31 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-20 22:18:09 +0000 |
commit | ac69a6d1fa7a830a3e1b8b7d4ef8604c4e8285ed (patch) | |
tree | 9147abf748d1250162aad9f0f476b737ca4e07e3 /ui/qt/main_welcome.ui | |
parent | d11e94b9dcafb559046a37d6ef26c364844943f9 (diff) | |
download | wireshark-ac69a6d1fa7a830a3e1b8b7d4ef8604c4e8285ed.tar.gz |
Qt: Use an accordion frame in the welcome screen.
Place the recent files list in an accordion frame so that showing and
hiding is more visually smooth.
Change-Id: Ifdc534a33aa9f93949c9f919cfe0765fbfcde750
Reviewed-on: https://code.wireshark.org/review/5924
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_welcome.ui')
-rw-r--r-- | ui/qt/main_welcome.ui | 63 |
1 files changed, 51 insertions, 12 deletions
diff --git a/ui/qt/main_welcome.ui b/ui/qt/main_welcome.ui index 5d5a63a60b..2547d909ec 100644 --- a/ui/qt/main_welcome.ui +++ b/ui/qt/main_welcome.ui @@ -56,23 +56,56 @@ </widget> </item> <item> - <widget class="QLabel" name="recentLabel"> - <property name="text"> - <string><h2>Open</h2></string> - </property> - </widget> - </item> - <item> - <widget class="QListWidget" name="recentList"> + <widget class="AccordionFrame" name="openFrame"> <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"> - <horstretch>1</horstretch> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>0</horstretch> <verstretch>2</verstretch> </sizepolicy> </property> - <property name="horizontalScrollBarPolicy"> - <enum>Qt::ScrollBarAlwaysOff</enum> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Plain</enum> </property> + <property name="lineWidth"> + <number>0</number> + </property> + <layout class="QVBoxLayout" name="verticalLayout" stretch="0,0"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QLabel" name="recentLabel"> + <property name="text"> + <string><h2>Open</h2></string> + </property> + </widget> + </item> + <item> + <widget class="QListWidget" name="recentList"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"> + <horstretch>1</horstretch> + <verstretch>2</verstretch> + </sizepolicy> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + </widget> + </item> + </layout> </widget> </item> <item> @@ -234,6 +267,12 @@ a:hover { <extends>QComboBox</extends> <header>capture_filter_combo.h</header> </customwidget> + <customwidget> + <class>AccordionFrame</class> + <extends>QFrame</extends> + <header>accordion_frame.h</header> + <container>1</container> + </customwidget> </customwidgets> <resources/> <connections/> |