Skip to content

Commit 20cf1d5

Browse files
committedMay 10, 2018
Make collapsible the groupboxes
to better handle vertical frames (cherry picked from commit 684b367)
1 parent 100d940 commit 20cf1d5

File tree

1 file changed

+66
-53
lines changed

1 file changed

+66
-53
lines changed
 

‎src/ui/qgsattributetypeedit.ui

Lines changed: 66 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</property>
1616
<layout class="QVBoxLayout" name="verticalLayout">
1717
<item>
18-
<widget class="QGroupBox" name="groupBox_4">
18+
<widget class="QgsCollapsibleGroupBox" name="groupBox_4">
1919
<property name="title">
2020
<string>General</string>
2121
</property>
@@ -75,7 +75,7 @@
7575
</widget>
7676
</item>
7777
<item>
78-
<widget class="QGroupBox" name="groupBox_3">
78+
<widget class="QgsCollapsibleGroupBox" name="groupBox_3">
7979
<property name="title">
8080
<string>Widget Type</string>
8181
</property>
@@ -180,55 +180,64 @@
180180
</widget>
181181
</item>
182182
<item>
183-
<layout class="QGridLayout" name="gridLayout_4">
184-
<item row="2" column="0">
185-
<widget class="QGroupBox" name="groupBox_2">
186-
<property name="title">
187-
<string>Defaults</string>
188-
</property>
189-
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1">
190-
<item row="1" column="0">
191-
<widget class="QLabel" name="label_3">
192-
<property name="text">
193-
<string>Default value</string>
194-
</property>
195-
</widget>
196-
</item>
197-
<item row="3" column="1">
198-
<widget class="QLabel" name="mDefaultPreviewLabel">
199-
<property name="text">
200-
<string/>
201-
</property>
202-
</widget>
203-
</item>
204-
<item row="1" column="1">
205-
<widget class="QgsExpressionLineEdit" name="mExpressionWidget" native="true">
206-
<property name="focusPolicy">
207-
<enum>Qt::StrongFocus</enum>
208-
</property>
209-
</widget>
210-
</item>
211-
<item row="3" column="0">
212-
<widget class="QLabel" name="label_4">
213-
<property name="text">
214-
<string>Preview</string>
215-
</property>
216-
</widget>
217-
</item>
218-
<item row="4" column="0" colspan="2">
219-
<widget class="QCheckBox" name="mApplyDefaultValueOnUpdateCheckBox">
220-
<property name="toolTip">
221-
<string>&lt;p&gt;With this option checked, the default value will not only be used when the feature is first created, but also whenever a feature's attribute or geometry is changed.&lt;/p&gt;&lt;p&gt;This is often useful for a last_modified timestamp or to record the username that last modified the feature.&lt;/p&gt;</string>
222-
</property>
223-
<property name="text">
224-
<string>Apply default value on update</string>
225-
</property>
226-
</widget>
227-
</item>
228-
</layout>
229-
</widget>
230-
</item>
231-
</layout>
183+
<widget class="QgsCollapsibleGroupBox" name="groupBox_2">
184+
<property name="title">
185+
<string>Defaults</string>
186+
</property>
187+
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1">
188+
<item row="1" column="0">
189+
<widget class="QLabel" name="label_3">
190+
<property name="text">
191+
<string>Default value</string>
192+
</property>
193+
</widget>
194+
</item>
195+
<item row="3" column="1">
196+
<widget class="QLabel" name="mDefaultPreviewLabel">
197+
<property name="text">
198+
<string/>
199+
</property>
200+
</widget>
201+
</item>
202+
<item row="1" column="1">
203+
<widget class="QgsExpressionLineEdit" name="mExpressionWidget" native="true">
204+
<property name="focusPolicy">
205+
<enum>Qt::StrongFocus</enum>
206+
</property>
207+
</widget>
208+
</item>
209+
<item row="3" column="0">
210+
<widget class="QLabel" name="label_4">
211+
<property name="text">
212+
<string>Preview</string>
213+
</property>
214+
</widget>
215+
</item>
216+
<item row="4" column="0" colspan="2">
217+
<widget class="QCheckBox" name="mApplyDefaultValueOnUpdateCheckBox">
218+
<property name="toolTip">
219+
<string>&lt;p&gt;With this option checked, the default value will not only be used when the feature is first created, but also whenever a feature's attribute or geometry is changed.&lt;/p&gt;&lt;p&gt;This is often useful for a last_modified timestamp or to record the username that last modified the feature.&lt;/p&gt;</string>
220+
</property>
221+
<property name="text">
222+
<string>Apply default value on update</string>
223+
</property>
224+
</widget>
225+
</item>
226+
</layout>
227+
</widget>
228+
</item>
229+
<item>
230+
<spacer name="verticalSpacer">
231+
<property name="orientation">
232+
<enum>Qt::Vertical</enum>
233+
</property>
234+
<property name="sizeHint" stdset="0">
235+
<size>
236+
<width>20</width>
237+
<height>0</height>
238+
</size>
239+
</property>
240+
</spacer>
232241
</item>
233242
</layout>
234243
</widget>
@@ -253,15 +262,19 @@
253262
</customwidget>
254263
</customwidgets>
255264
<tabstops>
256-
<tabstop>mExpressionWidget</tabstop>
257-
<tabstop>groupBox</tabstop>
265+
<tabstop>leAlias</tabstop>
266+
<tabstop>isFieldEditableCheckBox</tabstop>
267+
<tabstop>labelOnTopCheckBox</tabstop>
268+
<tabstop>mWidgetTypeComboBox</tabstop>
258269
<tabstop>notNullCheckBox</tabstop>
259270
<tabstop>mCheckBoxEnforceNotNull</tabstop>
260271
<tabstop>mUniqueCheckBox</tabstop>
261272
<tabstop>mCheckBoxEnforceUnique</tabstop>
262273
<tabstop>constraintExpressionWidget</tabstop>
263274
<tabstop>leConstraintExpressionDescription</tabstop>
264275
<tabstop>mCheckBoxEnforceExpression</tabstop>
276+
<tabstop>mExpressionWidget</tabstop>
277+
<tabstop>mApplyDefaultValueOnUpdateCheckBox</tabstop>
265278
</tabstops>
266279
<resources/>
267280
<connections/>

0 commit comments

Comments
 (0)
Please sign in to comment.