From 606b5bd9534002a04f897940d2c2b760db2fdc89 Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Fri, 17 May 2013 14:35:20 +0200 Subject: [PATCH] SqlExecutionArea: Show status messages in text edit instead of label --- src/SqlExecutionArea.cpp | 2 +- src/SqlExecutionArea.ui | 42 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/SqlExecutionArea.cpp b/src/SqlExecutionArea.cpp index 23ece396..b49aa9cd 100644 --- a/src/SqlExecutionArea.cpp +++ b/src/SqlExecutionArea.cpp @@ -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(); } diff --git a/src/SqlExecutionArea.ui b/src/SqlExecutionArea.ui index b8659f39..c0d4405e 100644 --- a/src/SqlExecutionArea.ui +++ b/src/SqlExecutionArea.ui @@ -37,9 +37,39 @@ - - - + + + + 16777215 + 100 + + + + + Monospace + 8 + + + + false + + + Results of the last executed statements + + + This field shows the results and status codes of the last executed statements. + + + QFrame::Plain + + + true + + + false + + + true @@ -86,6 +116,12 @@
ExtendedTableWidget.h
+ + editEditor + tableResult + editErrors + buttonSave +