Commit 4a0bfbff authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

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: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 7388034e
......@@ -51,22 +51,53 @@
<property name="title">
<string>General</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QLabel" name="oSTypeLabel">
<property name="text">
<string>Type:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="osTypeValueLabel">
<property name="text">
<string/>
</property>
</widget>
<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">
<widget class="QLabel" name="oSTypeLabel">
<property name="text">
<string>Type:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="osTypeValueLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="autoDetectionKeyLabel">
<property name="text">
<string>Auto-detected:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="autoDetectionValueLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
......@@ -79,38 +110,17 @@
</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">
<widget class="QLabel" name="autoDetectionKeyLabel">
<property name="text">
<string>Auto-detected:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="autoDetectionValueLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="osSpecificGroupBox">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="title">
<string>Type Specific</string>
</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment