Skip to content

Commit

Permalink
[ui] harmonize QDialogButtonBox position in provider dialogs
Browse files Browse the repository at this point in the history
This commit insures that the QDialogButtonBox widget (i.e.
help, add, build query, set filter) is always located at
the very bottom of the dialog. It helps make a better UX out
of the unified add layer dialog.
  • Loading branch information
nirvn committed Jun 19, 2017
1 parent 8c012da commit 61a4610
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/ui/qgsdelimitedtextsourceselectbase.ui
Expand Up @@ -1321,16 +1321,6 @@
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblStatus">
<property name="sizePolicy">
Expand All @@ -1344,6 +1334,16 @@
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgsowssourceselectbase.ui
Expand Up @@ -24,14 +24,14 @@
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="0">
<item row="2" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Close|QDialogButtonBox::Help</set>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="1" column="0">
<widget class="QLabel" name="mStatusLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgswmssourceselectbase.ui
Expand Up @@ -24,14 +24,14 @@
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="0">
<item row="3" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="2" column="0">
<widget class="QLabel" name="labelStatus">
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
Expand Down

0 comments on commit 61a4610

Please sign in to comment.