Skip to content

Commit fd10425

Browse files
committedDec 9, 2017
Align CRS selector with geometry widgets in new layer dialogs
Since it's directly related to the geometry settings, and is only enabled when the geometry is selected, it should be more closely visually linked with this widget
1 parent fe42464 commit fd10425

File tree

3 files changed

+21
-27
lines changed

3 files changed

+21
-27
lines changed
 

‎src/ui/qgsnewgeopackagelayerdialogbase.ui

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<item row="0" column="0">
7070
<layout class="QHBoxLayout" name="horizontalLayout_6"/>
7171
</item>
72-
<item row="3" column="0">
72+
<item row="4" column="0">
7373
<widget class="QGroupBox" name="groupBox_3">
7474
<property name="title">
7575
<string>New field</string>
@@ -240,9 +240,16 @@
240240
</item>
241241
</layout>
242242
</item>
243+
<item row="5" column="2">
244+
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
245+
<property name="focusPolicy">
246+
<enum>Qt::StrongFocus</enum>
247+
</property>
248+
</widget>
249+
</item>
243250
</layout>
244251
</item>
245-
<item row="4" column="0">
252+
<item row="5" column="0">
246253
<widget class="QGroupBox" name="groupBox_2">
247254
<property name="title">
248255
<string>Fields list</string>
@@ -321,16 +328,9 @@
321328
</layout>
322329
</widget>
323330
</item>
324-
<item row="2" column="0">
325-
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector">
326-
<property name="focusPolicy">
327-
<enum>Qt::StrongFocus</enum>
328-
</property>
329-
</widget>
330-
</item>
331-
<item row="5" column="0">
332-
<widget class="QgsCollapsibleGroupBox" name="groupBox">
333-
<property name="title">
331+
<item row="6" column="0">
332+
<widget class="QgsCollapsibleGroupBox" name="groupBox" native="true">
333+
<property name="title" stdset="0">
334334
<string>Advanced options</string>
335335
</property>
336336
<property name="collapsed" stdset="0">

‎src/ui/qgsnewmemorylayerdialogbase.ui

Lines changed: 2 additions & 8 deletions
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>233</height>
10+
<height>246</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -59,14 +59,8 @@
5959
<item row="0" column="1" colspan="2">
6060
<widget class="QLineEdit" name="mNameLineEdit"/>
6161
</item>
62-
<item row="3" column="0" colspan="3">
62+
<item row="3" column="1" colspan="2">
6363
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
64-
<property name="minimumSize">
65-
<size>
66-
<width>0</width>
67-
<height>0</height>
68-
</size>
69-
</property>
7064
<property name="focusPolicy">
7165
<enum>Qt::StrongFocus</enum>
7266
</property>

‎src/ui/qgsnewvectorlayerdialogbase.ui

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
<bool>true</bool>
1818
</property>
1919
<layout class="QGridLayout">
20-
<item row="9" column="0" colspan="2">
21-
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
22-
<property name="focusPolicy">
23-
<enum>Qt::StrongFocus</enum>
24-
</property>
25-
</widget>
26-
</item>
2720
<item row="14" column="0" colspan="2">
2821
<widget class="QDialogButtonBox" name="buttonBox">
2922
<property name="orientation">
@@ -312,6 +305,13 @@
312305
</property>
313306
</widget>
314307
</item>
308+
<item row="5" column="1" colspan="2">
309+
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
310+
<property name="focusPolicy">
311+
<enum>Qt::StrongFocus</enum>
312+
</property>
313+
</widget>
314+
</item>
315315
</layout>
316316
</item>
317317
</layout>

0 commit comments

Comments
 (0)
Please sign in to comment.