|
14 | 14 | <string>Edit Widget Properties</string>
|
15 | 15 | </property>
|
16 | 16 | <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> |
24 | 21 | </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> |
25 | 65 | </widget>
|
26 | 66 | </item>
|
27 | 67 | <item row="1" column="1">
|
|
34 | 74 | </property>
|
35 | 75 | </widget>
|
36 | 76 | </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"/> |
39 | 79 | </item>
|
40 | 80 | <item row="10" column="1">
|
41 | 81 | <widget class="QDialogButtonBox" name="buttonBox">
|
|
47 | 87 | </property>
|
48 | 88 | </widget>
|
49 | 89 | </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"/> |
52 | 92 | </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"> |
55 | 95 | <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> |
64 | 97 | </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> |
81 | 100 | </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> |
93 | 102 | </item>
|
94 | 103 | </layout>
|
95 | 104 | </widget>
|
|
100 | 109 | <header>qgsfieldexpressionwidget.h</header>
|
101 | 110 | <container>1</container>
|
102 | 111 | </customwidget>
|
| 112 | + <customwidget> |
| 113 | + <class>QgsCollapsibleGroupBox</class> |
| 114 | + <extends>QGroupBox</extends> |
| 115 | + <header>qgscollapsiblegroupbox.h</header> |
| 116 | + <container>1</container> |
| 117 | + </customwidget> |
103 | 118 | </customwidgets>
|
104 | 119 | <tabstops>
|
105 | 120 | <tabstop>selectionListWidget</tabstop>
|
|
0 commit comments