fixed item order inside layout causing wrong initial focused widget

This commit is contained in:
uclaros 2020-01-18 13:16:13 +02:00 committed by Nyall Dawson
parent b6479c65ae
commit bfe08c66da

View File

@ -17,29 +17,6 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="textLabel2">
<property name="text">
<string>Type</string>
</property>
<property name="buddy">
<cstring>mTypeBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="mCommentEdit"/>
</item>
<item row="3" column="1">
<widget class="QLabel" name="mTypeName">
<property name="text">
<string>Type</string>
</property>
<property name="buddy">
<cstring>mTypeBox</cstring>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="textLabel1"> <widget class="QLabel" name="textLabel1">
<property name="text"> <property name="text">
@ -50,32 +27,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="0" column="1">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QLineEdit" name="mNameEdit"/>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="mPrecLabel">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
<property name="text">
<string>Precision</string>
</property>
<property name="buddy">
<cstring>mPrec</cstring>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="mLength">
<property name="toolTip">
<string>Total length of field (including the number of digits after the decimal place for decimal fields).&lt;br&gt;For example 123.45 requires a decimal field length of 5, and 123456 requires an integer field length of 6.</string>
</property>
</widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="textLabel1_2"> <widget class="QLabel" name="textLabel1_2">
@ -87,10 +40,36 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="1" column="1">
<widget class="QSpinBox" name="mPrec"> <widget class="QLineEdit" name="mCommentEdit"/>
<property name="toolTip"> </item>
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string> <item row="2" column="0">
<widget class="QLabel" name="textLabel2">
<property name="text">
<string>Type</string>
</property>
<property name="buddy">
<cstring>mTypeBox</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="mTypeBox"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Provider type</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="mTypeName">
<property name="text">
<string>Type</string>
</property>
<property name="buddy">
<cstring>mTypeBox</cstring>
</property> </property>
</widget> </widget>
</item> </item>
@ -107,11 +86,32 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="4" column="1">
<widget class="QLineEdit" name="mNameEdit"/> <widget class="QSpinBox" name="mLength">
<property name="toolTip">
<string>Total length of field (including the number of digits after the decimal place for decimal fields).&lt;br&gt;For example 123.45 requires a decimal field length of 5, and 123456 requires an integer field length of 6.</string>
</property>
</widget>
</item> </item>
<item row="2" column="1"> <item row="5" column="0">
<widget class="QComboBox" name="mTypeBox"/> <widget class="QLabel" name="mPrecLabel">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
<property name="text">
<string>Precision</string>
</property>
<property name="buddy">
<cstring>mPrec</cstring>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="mPrec">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
</property>
</widget>
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
@ -126,10 +126,10 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="3" column="0"> <item row="7" column="1">
<widget class="QLabel" name="label"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="text"> <property name="standardButtons">
<string>Provider type</string> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property> </property>
</widget> </widget>
</item> </item>