Add option for horizontal tiling between code editor and result view

Add a new option to the Preferences Dialog which activates horizontal
tiling between the SQL code editor and the result view in the Execute
SQL tab, i.e. the two widgets are shown side by side instead of one over
the other.

See issue #380.
This commit is contained in:
Martin Kleusberg
2015-07-08 21:48:14 +02:00
parent 6806a9b312
commit c235379523
5 changed files with 56 additions and 12 deletions
+27 -5
View File
@@ -737,7 +737,7 @@ QGroupBox::title {
<item row="3" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Tab size:</string>
<string>Tab size</string>
</property>
<property name="buddy">
<cstring>spinTabSize</cstring>
@@ -790,6 +790,26 @@ QGroupBox::title {
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Horizontal tiling</string>
</property>
<property name="buddy">
<cstring>checkHorizontalTiling</cstring>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="checkHorizontalTiling">
<property name="toolTip">
<string>If enabled the SQL code editor and the result table view are shown side by side instead of one over the other.</string>
</property>
<property name="text">
<string>enabled</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
@@ -886,6 +906,7 @@ QGroupBox::title {
</layout>
</widget>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>comboDefaultLocation</tabstop>
<tabstop>locationEdit</tabstop>
<tabstop>setLocationButton</tabstop>
@@ -908,6 +929,7 @@ QGroupBox::title {
<tabstop>spinLogFontSize</tabstop>
<tabstop>spinTabSize</tabstop>
<tabstop>checkErrorIndicators</tabstop>
<tabstop>checkHorizontalTiling</tabstop>
<tabstop>listExtensions</tabstop>
<tabstop>buttonAddExtension</tabstop>
<tabstop>buttonRemoveExtension</tabstop>
@@ -956,8 +978,8 @@ QGroupBox::title {
<slot>addExtension()</slot>
<hints>
<hint type="sourcelabel">
<x>567</x>
<y>88</y>
<x>119</x>
<y>79</y>
</hint>
<hint type="destinationlabel">
<x>245</x>
@@ -972,8 +994,8 @@ QGroupBox::title {
<slot>removeExtension()</slot>
<hints>
<hint type="sourcelabel">
<x>567</x>
<y>117</y>
<x>119</x>
<y>79</y>
</hint>
<hint type="destinationlabel">
<x>245</x>