|
14 | 14 | <string>Edit Widget Properties</string> |
15 | 15 | </property> |
16 | 16 | <layout class="QGridLayout" name="gridLayout"> |
| 17 | + <item row="5" column="1"> |
| 18 | + <widget class="QStackedWidget" name="stackedWidget"/> |
| 19 | + </item> |
| 20 | + <item row="4" column="1"> |
| 21 | + <widget class="QgsCollapsibleGroupBox" name="groupBox"> |
| 22 | + <property name="title"> |
| 23 | + <string>Contraints</string> |
| 24 | + </property> |
| 25 | + <layout class="QVBoxLayout" name="verticalLayout"> |
| 26 | + <item> |
| 27 | + <widget class="QCheckBox" name="notNullCheckBox"> |
| 28 | + <property name="text"> |
| 29 | + <string>Not null</string> |
| 30 | + </property> |
| 31 | + </widget> |
| 32 | + </item> |
| 33 | + <item> |
| 34 | + <layout class="QHBoxLayout" name="horizontalLayout_2"> |
| 35 | + <property name="topMargin"> |
| 36 | + <number>0</number> |
| 37 | + </property> |
| 38 | + <item> |
| 39 | + <widget class="QLabel" name="label"> |
| 40 | + <property name="text"> |
| 41 | + <string>Constraint</string> |
| 42 | + </property> |
| 43 | + </widget> |
| 44 | + </item> |
| 45 | + <item> |
| 46 | + <widget class="QgsFieldExpressionWidget" name="constraintExpressionWidget" native="true"> |
| 47 | + <property name="focusPolicy"> |
| 48 | + <enum>Qt::StrongFocus</enum> |
| 49 | + </property> |
| 50 | + </widget> |
| 51 | + </item> |
| 52 | + </layout> |
| 53 | + </item> |
| 54 | + <item> |
| 55 | + <layout class="QHBoxLayout" name="horizontalLayout"> |
| 56 | + <property name="bottomMargin"> |
| 57 | + <number>0</number> |
| 58 | + </property> |
| 59 | + <item> |
| 60 | + <widget class="QLabel" name="label_2"> |
| 61 | + <property name="text"> |
| 62 | + <string>Constraint description</string> |
| 63 | + </property> |
| 64 | + </widget> |
| 65 | + </item> |
| 66 | + <item> |
| 67 | + <widget class="QLineEdit" name="leConstraintExpressionDescription"/> |
| 68 | + </item> |
| 69 | + </layout> |
| 70 | + </item> |
| 71 | + </layout> |
| 72 | + </widget> |
| 73 | + </item> |
17 | 74 | <item row="0" column="1"> |
18 | 75 | <widget class="QCheckBox" name="isFieldEditableCheckBox"> |
19 | 76 | <property name="text"> |
|
24 | 81 | </property> |
25 | 82 | </widget> |
26 | 83 | </item> |
| 84 | + <item row="2" column="1"> |
| 85 | + <widget class="QGroupBox" name="groupBox_2"> |
| 86 | + <property name="title"> |
| 87 | + <string>Defaults</string> |
| 88 | + </property> |
| 89 | + <layout class="QGridLayout" name="gridLayout_2" columnstretch="0,1"> |
| 90 | + <item row="0" column="0"> |
| 91 | + <widget class="QLabel" name="label_3"> |
| 92 | + <property name="text"> |
| 93 | + <string>Default value</string> |
| 94 | + </property> |
| 95 | + </widget> |
| 96 | + </item> |
| 97 | + <item row="1" column="0"> |
| 98 | + <widget class="QLabel" name="label_4"> |
| 99 | + <property name="text"> |
| 100 | + <string>Preview</string> |
| 101 | + </property> |
| 102 | + </widget> |
| 103 | + </item> |
| 104 | + <item row="0" column="1"> |
| 105 | + <widget class="QgsExpressionLineEdit" name="mExpressionWidget" native="true"> |
| 106 | + <property name="focusPolicy"> |
| 107 | + <enum>Qt::StrongFocus</enum> |
| 108 | + </property> |
| 109 | + </widget> |
| 110 | + </item> |
| 111 | + <item row="1" column="1"> |
| 112 | + <widget class="QLabel" name="mDefaultPreviewLabel"> |
| 113 | + <property name="text"> |
| 114 | + <string/> |
| 115 | + </property> |
| 116 | + </widget> |
| 117 | + </item> |
| 118 | + </layout> |
| 119 | + </widget> |
| 120 | + </item> |
27 | 121 | <item row="1" column="1"> |
28 | 122 | <widget class="QCheckBox" name="labelOnTopCheckBox"> |
29 | 123 | <property name="text"> |
|
34 | 128 | </property> |
35 | 129 | </widget> |
36 | 130 | </item> |
37 | | - <item row="0" column="0" rowspan="11"> |
| 131 | + <item row="0" column="0" rowspan="7"> |
38 | 132 | <widget class="QListWidget" name="selectionListWidget"/> |
39 | 133 | </item> |
40 | | - <item row="10" column="1"> |
| 134 | + <item row="6" column="1"> |
41 | 135 | <widget class="QDialogButtonBox" name="buttonBox"> |
42 | 136 | <property name="orientation"> |
43 | 137 | <enum>Qt::Horizontal</enum> |
|
47 | 141 | </property> |
48 | 142 | </widget> |
49 | 143 | </item> |
50 | | - <item row="6" column="1"> |
51 | | - <widget class="QStackedWidget" name="stackedWidget"/> |
52 | | - </item> |
53 | | - <item row="2" column="1"> |
54 | | - <layout class="QHBoxLayout" name="horizontalLayout_3"> |
55 | | - <item> |
56 | | - <widget class="QLabel" name="label_3"> |
57 | | - <property name="text"> |
58 | | - <string>Default value</string> |
59 | | - </property> |
60 | | - </widget> |
61 | | - </item> |
62 | | - <item> |
63 | | - <widget class="QgsExpressionLineEdit" name="mExpressionWidget" native="true"> |
64 | | - <property name="maximumSize"> |
65 | | - <size> |
66 | | - <width>500</width> |
67 | | - <height>16777215</height> |
68 | | - </size> |
69 | | - </property> |
70 | | - <property name="focusPolicy"> |
71 | | - <enum>Qt::StrongFocus</enum> |
72 | | - </property> |
73 | | - </widget> |
74 | | - </item> |
75 | | - </layout> |
76 | | - </item> |
77 | | - <item row="3" column="1"> |
78 | | - <widget class="QCheckBox" name="notNullCheckBox"> |
79 | | - <property name="text"> |
80 | | - <string>Not null</string> |
81 | | - </property> |
82 | | - </widget> |
83 | | - </item> |
84 | | - <item row="4" column="1"> |
85 | | - <layout class="QHBoxLayout" name="horizontalLayout_2"> |
86 | | - <property name="topMargin"> |
87 | | - <number>0</number> |
88 | | - </property> |
89 | | - <item> |
90 | | - <widget class="QLabel" name="label"> |
91 | | - <property name="text"> |
92 | | - <string>Constraint</string> |
93 | | - </property> |
94 | | - </widget> |
95 | | - </item> |
96 | | - <item> |
97 | | - <widget class="QgsFieldExpressionWidget" name="constraintExpressionWidget" native="true"/> |
98 | | - </item> |
99 | | - </layout> |
100 | | - </item> |
101 | | - <item row="5" column="1"> |
102 | | - <layout class="QHBoxLayout" name="horizontalLayout"> |
103 | | - <property name="bottomMargin"> |
104 | | - <number>0</number> |
105 | | - </property> |
106 | | - <item> |
107 | | - <widget class="QLabel" name="label_2"> |
108 | | - <property name="text"> |
109 | | - <string>Constraint description</string> |
110 | | - </property> |
111 | | - </widget> |
112 | | - </item> |
113 | | - <item> |
114 | | - <widget class="QLineEdit" name="leConstraintExpressionDescription"/> |
115 | | - </item> |
116 | | - </layout> |
117 | | - </item> |
118 | 144 | </layout> |
119 | 145 | </widget> |
120 | 146 | <customwidgets> |
|
124 | 150 | <header>qgsexpressionlineedit.h</header> |
125 | 151 | <container>1</container> |
126 | 152 | </customwidget> |
| 153 | + <customwidget> |
| 154 | + <class>QgsCollapsibleGroupBox</class> |
| 155 | + <extends>QGroupBox</extends> |
| 156 | + <header>qgscollapsiblegroupbox.h</header> |
| 157 | + <container>1</container> |
| 158 | + </customwidget> |
127 | 159 | <customwidget> |
128 | 160 | <class>QgsFieldExpressionWidget</class> |
129 | 161 | <extends>QWidget</extends> |
|
135 | 167 | <tabstop>selectionListWidget</tabstop> |
136 | 168 | <tabstop>isFieldEditableCheckBox</tabstop> |
137 | 169 | <tabstop>labelOnTopCheckBox</tabstop> |
138 | | - <tabstop>buttonBox</tabstop> |
| 170 | + <tabstop>mExpressionWidget</tabstop> |
| 171 | + <tabstop>notNullCheckBox</tabstop> |
| 172 | + <tabstop>constraintExpressionWidget</tabstop> |
| 173 | + <tabstop>leConstraintExpressionDescription</tabstop> |
139 | 174 | </tabstops> |
140 | 175 | <resources/> |
141 | 176 | <connections> |
|
0 commit comments