Device settings widget improvements.

- Use a form layout in the "General" group box - now the labels are
  aligned according to the platform.
- Set a minimum height for the "Type Specific" group box. If there are
  no devices the "Type Specific" label will be not cut off by the
  underlying spacer.

Change-Id: Ia4527628db204ad33852d8d21751ec60cfe225cd
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Nikolai Kosjar
2012-05-08 09:36:52 +02:00
parent 7388034eef
commit 4a0bfbff5f

View File

@@ -51,7 +51,22 @@
<property name="title"> <property name="title">
<string>General</string> <string>General</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="deviceNameLabel">
<property name="text">
<string>&amp;Name:</string>
</property>
<property name="buddy">
<cstring>nameLineEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="nameLineEdit"/>
</item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="oSTypeLabel"> <widget class="QLabel" name="oSTypeLabel">
<property name="text"> <property name="text">
@@ -66,32 +81,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="nameLineEdit"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="deviceNameLabel">
<property name="text">
<string>&amp;Name:</string>
</property>
<property name="buddy">
<cstring>nameLineEdit</cstring>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="autoDetectionKeyLabel"> <widget class="QLabel" name="autoDetectionKeyLabel">
<property name="text"> <property name="text">
@@ -107,10 +96,31 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="osSpecificGroupBox"> <widget class="QGroupBox" name="osSpecificGroupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="title"> <property name="title">
<string>Type Specific</string> <string>Type Specific</string>
</property> </property>