mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
SqlExecutionArea: Show status messages in text edit instead of label
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user