aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKel Modderman <kel@otaku42.de>2008-02-09 04:07:15 (GMT)
committerJouni Malinen <j@w1.fi>2008-02-09 04:07:15 (GMT)
commit9e63b8ec59f13d5c4c384cbac630679a1c436360 (patch)
treeea207c235c6008c62c7818346126ffe31b77c462
parentc658d78cfa85d81c36723e517b81c76274b2702c (diff)
downloadhostap-history-9e63b8ec59f13d5c4c384cbac630679a1c436360.zip
hostap-history-9e63b8ec59f13d5c4c384cbac630679a1c436360.tar.gz
hostap-history-9e63b8ec59f13d5c4c384cbac630679a1c436360.tar.bz2
wpa_gui-qt4: eventhistory.ui, always show vert scrollbar, better resizing
Always show the vertical scrollbar in the event history list view box. This makes querying scrollbar position one step easier. Use a horizontal spacer in a grid layout to push Close button to bottom right corner and allow larger resizing of event list view box. Signed-off-by: Kel Modderman <kel@otaku42.de>
-rw-r--r--wpa_supplicant/wpa_gui-qt4/eventhistory.ui58
1 files changed, 21 insertions, 37 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/eventhistory.ui b/wpa_supplicant/wpa_gui-qt4/eventhistory.ui
index 23bf036..427d830 100644
--- a/wpa_supplicant/wpa_gui-qt4/eventhistory.ui
+++ b/wpa_supplicant/wpa_gui-qt4/eventhistory.ui
@@ -12,8 +12,8 @@
<property name="windowTitle" >
<string>Event history</string>
</property>
- <layout class="QVBoxLayout" >
- <item>
+ <layout class="QGridLayout" >
+ <item row="0" column="0" colspan="2" >
<widget class="QTreeView" name="eventListView" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
@@ -21,49 +21,33 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="verticalScrollBarPolicy" >
+ <enum>Qt::ScrollBarAlwaysOn</enum>
+ </property>
<property name="selectionMode" >
<enum>QAbstractItemView::NoSelection</enum>
</property>
</widget>
</item>
- <item>
- <layout class="QHBoxLayout" >
- <property name="leftMargin" >
- <number>0</number>
- </property>
- <property name="topMargin" >
- <number>0</number>
+ <item row="1" column="0" >
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
</property>
- <property name="rightMargin" >
- <number>0</number>
+ <property name="sizeHint" >
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
</property>
- <property name="bottomMargin" >
- <number>0</number>
+ </spacer>
+ </item>
+ <item row="1" column="1" >
+ <widget class="QPushButton" name="closeButton" >
+ <property name="text" >
+ <string>Close</string>
</property>
- <item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeType" >
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="closeButton" >
- <property name="text" >
- <string>Close</string>
- </property>
- </widget>
- </item>
- </layout>
+ </widget>
</item>
</layout>
</widget>