Skip to content

Commit

Permalink
Improve splitter in Execute SQL tab
Browse files Browse the repository at this point in the history
Set a maximum height for the error area in the Execute SQL tab. This way
it doesn't occupy as much space by default.

Use two separate splitters instead of just one. This fixes the
horizontal tiling option.

See issue #380.
  • Loading branch information
MKleusberg committed Oct 11, 2017
1 parent f4c2788 commit ce18198
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions src/SqlExecutionArea.ui
Original file line number Diff line number Diff line change
Expand Up @@ -15,62 +15,64 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QSplitter" name="splitter">
<widget class="QSplitter" name="splitter_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="SqlTextEdit" name="editEditor"/>
<widget class="ExtendedTableWidget" name="tableResult">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="SqlTextEdit" name="editEditor"/>
<widget class="ExtendedTableWidget" name="tableResult">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</widget>
<widget class="QWidget" name="layoutWidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QTextEdit" name="editErrors">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Monospace</family>
<pointsize>8</pointsize>
</font>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Results of the last executed statements</string>
</property>
<property name="whatsThis">
<string>This field shows the results and status codes of the last executed statements.</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="undoRedoEnabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
<widget class="QTextEdit" name="editErrors">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>120</height>
</size>
</property>
<property name="font">
<font>
<family>Monospace</family>
<pointsize>8</pointsize>
</font>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Results of the last executed statements</string>
</property>
<property name="whatsThis">
<string>This field shows the results and status codes of the last executed statements.</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="tabChangesFocus">
<bool>true</bool>
</property>
<property name="undoRedoEnabled">
<bool>false</bool>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
Expand Down

0 comments on commit ce18198

Please sign in to comment.