Skip to content
Permalink
Browse files

fixed item order inside layout causing wrong initial focused widget

  • Loading branch information
uclaros authored and nyalldawson committed Jan 18, 2020
1 parent b6479c6 commit bfe08c66daef5c05acfa92d4636a3a016e24399b
Showing with 48 additions and 48 deletions.
  1. +48 −48 src/ui/qgsaddattrdialogbase.ui
@@ -17,21 +17,34 @@
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="textLabel2">
<item row="0" column="0">
<widget class="QLabel" name="textLabel1">
<property name="text">
<string>Type</string>
<string>N&amp;ame</string>
</property>
<property name="buddy">
<cstring>mTypeBox</cstring>
<cstring>mNameEdit</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mNameEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel1_2">
<property name="text">
<string>Comment</string>
</property>
<property name="buddy">
<cstring>mCommentEdit</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">
<item row="2" column="0">
<widget class="QLabel" name="textLabel2">
<property name="text">
<string>Type</string>
</property>
@@ -40,33 +53,36 @@
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="textLabel1">
<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>N&amp;ame</string>
</property>
<property name="buddy">
<cstring>mNameEdit</cstring>
<string>Provider type</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<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="5" column="0">
<widget class="QLabel" name="mPrecLabel">
<item row="4" column="0">
<widget class="QLabel" name="mLengthLabel">
<property name="toolTip">
<string>Maximum number of digits after the decimal place. For example 123.45 requires a field precision of 2.</string>
<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>
<property name="text">
<string>Precision</string>
<string>Length</string>
</property>
<property name="buddy">
<cstring>mPrec</cstring>
<cstring>mLength</cstring>
</property>
</widget>
</item>
@@ -77,13 +93,16 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="textLabel1_2">
<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>Comment</string>
<string>Precision</string>
</property>
<property name="buddy">
<cstring>mCommentEdit</cstring>
<cstring>mPrec</cstring>
</property>
</widget>
</item>
@@ -94,25 +113,6 @@
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="mLengthLabel">
<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>
<property name="text">
<string>Length</string>
</property>
<property name="buddy">
<cstring>mLength</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="mNameEdit"/>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="mTypeBox"/>
</item>
<item row="6" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
@@ -126,10 +126,10 @@
</property>
</spacer>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Provider type</string>
<item row="7" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>

0 comments on commit bfe08c6

Please sign in to comment.
You can’t perform that action at this time.