Skip to content

Commit

Permalink
Align CRS selector with geometry widgets in new layer dialogs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nyalldawson committed Dec 9, 2017
1 parent fe42464 commit fd10425
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
24 changes: 12 additions & 12 deletions src/ui/qgsnewgeopackagelayerdialogbase.ui
Expand Up @@ -69,7 +69,7 @@
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_6"/>
</item>
<item row="3" column="0">
<item row="4" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>New field</string>
Expand Down Expand Up @@ -240,9 +240,16 @@
</item>
</layout>
</item>
<item row="5" column="2">
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<item row="5" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Fields list</string>
Expand Down Expand Up @@ -321,16 +328,9 @@
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QgsCollapsibleGroupBox" name="groupBox">
<property name="title">
<item row="6" column="0">
<widget class="QgsCollapsibleGroupBox" name="groupBox" native="true">
<property name="title" stdset="0">
<string>Advanced options</string>
</property>
<property name="collapsed" stdset="0">
Expand Down
10 changes: 2 additions & 8 deletions src/ui/qgsnewmemorylayerdialogbase.ui
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>444</width>
<height>233</height>
<height>246</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -59,14 +59,8 @@
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="mNameLineEdit"/>
</item>
<item row="3" column="0" colspan="3">
<item row="3" column="1" colspan="2">
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
Expand Down
14 changes: 7 additions & 7 deletions src/ui/qgsnewvectorlayerdialogbase.ui
Expand Up @@ -17,13 +17,6 @@
<bool>true</bool>
</property>
<layout class="QGridLayout">
<item row="9" column="0" colspan="2">
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="14" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
Expand Down Expand Up @@ -312,6 +305,13 @@
</property>
</widget>
</item>
<item row="5" column="1" colspan="2">
<widget class="QgsProjectionSelectionWidget" name="mCrsSelector" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
Expand Down

0 comments on commit fd10425

Please sign in to comment.