Skip to content

Commit d2da5fd

Browse files
committed
[BACKORT] move Add attribute button in New vector layer dialog (fix #2749) and some other minor UI fixes
1 parent 412fb19 commit d2da5fd

File tree

1 file changed

+37
-62
lines changed

1 file changed

+37
-62
lines changed

src/ui/qgsnewvectorlayerdialogbase.ui

+37-62
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>444</width>
10-
<height>488</height>
10+
<height>543</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
@@ -125,6 +125,32 @@
125125
<item row="2" column="4">
126126
<widget class="QLineEdit" name="mPrecision"/>
127127
</item>
128+
<item row="4" column="4">
129+
<widget class="QToolButton" name="mAddAttributeButton">
130+
<property name="sizePolicy">
131+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
132+
<horstretch>0</horstretch>
133+
<verstretch>0</verstretch>
134+
</sizepolicy>
135+
</property>
136+
<property name="toolTip">
137+
<string>Add attribute to list</string>
138+
</property>
139+
<property name="layoutDirection">
140+
<enum>Qt::LeftToRight</enum>
141+
</property>
142+
<property name="text">
143+
<string>Add to attributes list</string>
144+
</property>
145+
<property name="icon">
146+
<iconset>
147+
<normaloff>../../images/themes/default/mActionNewAttribute.png</normaloff>../../images/themes/default/mActionNewAttribute.png</iconset>
148+
</property>
149+
<property name="toolButtonStyle">
150+
<enum>Qt::ToolButtonTextBesideIcon</enum>
151+
</property>
152+
</widget>
153+
</item>
128154
</layout>
129155
</widget>
130156
</item>
@@ -189,7 +215,7 @@
189215
<item row="3" column="1">
190216
<widget class="QToolButton" name="mRemoveAttributeButton">
191217
<property name="sizePolicy">
192-
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
218+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
193219
<horstretch>0</horstretch>
194220
<verstretch>0</verstretch>
195221
</sizepolicy>
@@ -198,7 +224,7 @@
198224
<string>Delete selected attribute</string>
199225
</property>
200226
<property name="text">
201-
<string>Remove selected attribute</string>
227+
<string>Remove attribute</string>
202228
</property>
203229
<property name="icon">
204230
<iconset>
@@ -209,49 +235,10 @@
209235
</property>
210236
</widget>
211237
</item>
212-
<item row="1" column="0">
213-
<spacer name="horizontalSpacer">
214-
<property name="orientation">
215-
<enum>Qt::Horizontal</enum>
216-
</property>
217-
<property name="sizeHint" stdset="0">
218-
<size>
219-
<width>40</width>
220-
<height>20</height>
221-
</size>
222-
</property>
223-
</spacer>
224-
</item>
225-
<item row="1" column="1">
226-
<widget class="QToolButton" name="mAddAttributeButton">
227-
<property name="sizePolicy">
228-
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
229-
<horstretch>0</horstretch>
230-
<verstretch>0</verstretch>
231-
</sizepolicy>
232-
</property>
233-
<property name="toolTip">
234-
<string>Add attribute to list</string>
235-
</property>
236-
<property name="layoutDirection">
237-
<enum>Qt::LeftToRight</enum>
238-
</property>
239-
<property name="text">
240-
<string>Add to attributes list</string>
241-
</property>
242-
<property name="icon">
243-
<iconset>
244-
<normaloff>../../images/themes/default/mActionNewAttribute.png</normaloff>../../images/themes/default/mActionNewAttribute.png</iconset>
245-
</property>
246-
<property name="toolButtonStyle">
247-
<enum>Qt::ToolButtonTextBesideIcon</enum>
248-
</property>
249-
</widget>
250-
</item>
251238
</layout>
252239
</widget>
253240
</item>
254-
<item row="7" column="0" colspan="3">
241+
<item row="8" column="0" colspan="3">
255242
<widget class="QDialogButtonBox" name="buttonBox">
256243
<property name="orientation">
257244
<enum>Qt::Horizontal</enum>
@@ -261,23 +248,6 @@
261248
</property>
262249
</widget>
263250
</item>
264-
<item row="3" column="0">
265-
<widget class="QLabel" name="label_3">
266-
<property name="text">
267-
<string>CRS ID</string>
268-
</property>
269-
<property name="buddy">
270-
<cstring>leSpatialRefSys</cstring>
271-
</property>
272-
</widget>
273-
</item>
274-
<item row="3" column="1">
275-
<widget class="QLineEdit" name="leSpatialRefSys">
276-
<property name="readOnly">
277-
<bool>true</bool>
278-
</property>
279-
</widget>
280-
</item>
281251
<item row="3" column="2">
282252
<widget class="QPushButton" name="pbnChangeSpatialRefSys">
283253
<property name="toolTip">
@@ -291,6 +261,13 @@
291261
</property>
292262
</widget>
293263
</item>
264+
<item row="3" column="0" colspan="2">
265+
<widget class="QLineEdit" name="leSpatialRefSys">
266+
<property name="readOnly">
267+
<bool>true</bool>
268+
</property>
269+
</widget>
270+
</item>
294271
</layout>
295272
</widget>
296273
<layoutdefault spacing="6" margin="11"/>
@@ -305,9 +282,7 @@
305282
<tabstop>mTypeBox</tabstop>
306283
<tabstop>mWidth</tabstop>
307284
<tabstop>mPrecision</tabstop>
308-
<tabstop>mAddAttributeButton</tabstop>
309285
<tabstop>mAttributeView</tabstop>
310-
<tabstop>mRemoveAttributeButton</tabstop>
311286
<tabstop>buttonBox</tabstop>
312287
</tabstops>
313288
<resources/>

0 commit comments

Comments
 (0)