Skip to content

Commit

Permalink
[DB Manager]Allow preset query combobox expansion
Browse files Browse the repository at this point in the history
Fixes #17933
Also add some window title capitalisation
  • Loading branch information
DelazJ committed Jan 25, 2018
1 parent 502d9d7 commit fe6d4cf
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/ui/DlgQueryBuilder.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>SQL query builder</string>
<string>SQL Query Builder</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
Expand Down
19 changes: 16 additions & 3 deletions python/plugins/db_manager/ui/DlgSqlLayerWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>SQL window</string>
<string>SQL Window</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="3" column="0">
Expand Down Expand Up @@ -80,12 +80,19 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Saved query:</string>
<string>Saved query</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="presetCombo"/>
<widget class="QComboBox" name="presetCombo">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
Expand All @@ -96,6 +103,12 @@
</item>
<item>
<widget class="QLineEdit" name="presetName">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
Expand Down
27 changes: 23 additions & 4 deletions python/plugins/db_manager/ui/DlgSqlWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
<rect>
<x>0</x>
<y>0</y>
<width>626</width>
<width>679</width>
<height>525</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>SQL window</string>
<string>SQL Window</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
Expand Down Expand Up @@ -286,12 +292,19 @@ columns</string>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Saved query:</string>
<string>Saved query</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="presetCombo"/>
<widget class="QComboBox" name="presetCombo">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
Expand All @@ -302,6 +315,12 @@ columns</string>
</item>
<item>
<widget class="QLineEdit" name="presetName">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
Expand Down

0 comments on commit fe6d4cf

Please sign in to comment.