Skip to content

Commit 965f1d4

Browse files
committed
Move field contraint config widgets into a group box
1 parent c0ac9b1 commit 965f1d4

File tree

1 file changed

+63
-48
lines changed

1 file changed

+63
-48
lines changed

src/ui/qgsattributetypeedit.ui

Lines changed: 63 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,54 @@
1414
<string>Edit Widget Properties</string>
1515
</property>
1616
<layout class="QGridLayout" name="gridLayout">
17-
<item row="0" column="1">
18-
<widget class="QCheckBox" name="isFieldEditableCheckBox">
19-
<property name="text">
20-
<string>Editable</string>
21-
</property>
22-
<property name="checked">
23-
<bool>true</bool>
17+
<item row="2" column="1">
18+
<widget class="QgsCollapsibleGroupBox" name="groupBox">
19+
<property name="title">
20+
<string>Contraints</string>
2421
</property>
22+
<layout class="QVBoxLayout" name="verticalLayout">
23+
<item>
24+
<widget class="QCheckBox" name="notNullCheckBox">
25+
<property name="text">
26+
<string>Not null</string>
27+
</property>
28+
</widget>
29+
</item>
30+
<item>
31+
<layout class="QHBoxLayout" name="horizontalLayout_2">
32+
<property name="topMargin">
33+
<number>0</number>
34+
</property>
35+
<item>
36+
<widget class="QLabel" name="label">
37+
<property name="text">
38+
<string>Constraint</string>
39+
</property>
40+
</widget>
41+
</item>
42+
<item>
43+
<widget class="QgsFieldExpressionWidget" name="constraintExpression" native="true"/>
44+
</item>
45+
</layout>
46+
</item>
47+
<item>
48+
<layout class="QHBoxLayout" name="horizontalLayout">
49+
<property name="bottomMargin">
50+
<number>0</number>
51+
</property>
52+
<item>
53+
<widget class="QLabel" name="label_2">
54+
<property name="text">
55+
<string>Constraint description</string>
56+
</property>
57+
</widget>
58+
</item>
59+
<item>
60+
<widget class="QLineEdit" name="constraintExpressionDescription"/>
61+
</item>
62+
</layout>
63+
</item>
64+
</layout>
2565
</widget>
2666
</item>
2767
<item row="1" column="1">
@@ -34,8 +74,8 @@
3474
</property>
3575
</widget>
3676
</item>
37-
<item row="0" column="0" rowspan="11">
38-
<widget class="QListWidget" name="selectionListWidget"/>
77+
<item row="6" column="1">
78+
<widget class="QStackedWidget" name="stackedWidget"/>
3979
</item>
4080
<item row="10" column="1">
4181
<widget class="QDialogButtonBox" name="buttonBox">
@@ -47,49 +87,18 @@
4787
</property>
4888
</widget>
4989
</item>
50-
<item row="6" column="1">
51-
<widget class="QStackedWidget" name="stackedWidget"/>
90+
<item row="0" column="0" rowspan="11">
91+
<widget class="QListWidget" name="selectionListWidget"/>
5292
</item>
53-
<item row="2" column="1">
54-
<widget class="QCheckBox" name="notNullCheckBox">
93+
<item row="0" column="1">
94+
<widget class="QCheckBox" name="isFieldEditableCheckBox">
5595
<property name="text">
56-
<string>Not null</string>
57-
</property>
58-
</widget>
59-
</item>
60-
<item row="4" column="1">
61-
<layout class="QHBoxLayout" name="horizontalLayout_2">
62-
<property name="topMargin">
63-
<number>0</number>
96+
<string>Editable</string>
6497
</property>
65-
<item>
66-
<widget class="QLabel" name="label">
67-
<property name="text">
68-
<string>Constraint</string>
69-
</property>
70-
</widget>
71-
</item>
72-
<item>
73-
<widget class="QgsFieldExpressionWidget" name="constraintExpression" native="true"/>
74-
</item>
75-
</layout>
76-
</item>
77-
<item row="5" column="1">
78-
<layout class="QHBoxLayout" name="horizontalLayout">
79-
<property name="bottomMargin">
80-
<number>0</number>
98+
<property name="checked">
99+
<bool>true</bool>
81100
</property>
82-
<item>
83-
<widget class="QLabel" name="label_2">
84-
<property name="text">
85-
<string>Constraint description</string>
86-
</property>
87-
</widget>
88-
</item>
89-
<item>
90-
<widget class="QLineEdit" name="constraintExpressionDescription"/>
91-
</item>
92-
</layout>
101+
</widget>
93102
</item>
94103
</layout>
95104
</widget>
@@ -100,6 +109,12 @@
100109
<header>qgsfieldexpressionwidget.h</header>
101110
<container>1</container>
102111
</customwidget>
112+
<customwidget>
113+
<class>QgsCollapsibleGroupBox</class>
114+
<extends>QGroupBox</extends>
115+
<header>qgscollapsiblegroupbox.h</header>
116+
<container>1</container>
117+
</customwidget>
103118
</customwidgets>
104119
<tabstops>
105120
<tabstop>selectionListWidget</tabstop>

0 commit comments

Comments
 (0)