SqlExecutionArea: Show status messages in text edit instead of label

This commit is contained in:
Martin Kleusberg
2013-05-17 14:35:20 +02:00
parent 5a3cfda826
commit 606b5bd953
2 changed files with 40 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ QString SqlExecutionArea::getSelectedSql() const
void SqlExecutionArea::finishExecution(const QString& result)
{
ui->labelErrors->setText(result);
ui->editErrors->setText(result);
ui->tableResult->resizeColumnsToContents();
}

View File

@@ -37,9 +37,39 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="labelErrors">
<property name="text">
<string/>
<widget class="QTextEdit" name="editErrors">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>100</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="frameShadow">
<enum>QFrame::Plain</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>
@@ -86,6 +116,12 @@
<header>ExtendedTableWidget.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>editEditor</tabstop>
<tabstop>tableResult</tabstop>
<tabstop>editErrors</tabstop>
<tabstop>buttonSave</tabstop>
</tabstops>
<resources>
<include location="icons/icons.qrc"/>
</resources>