From: <ibr...@us...> - 2013-08-08 13:04:05
|
Revision: 4723 http://sourceforge.net/p/tora/code/4723 Author: ibre5041 Date: 2013-08-08 13:04:02 +0000 (Thu, 08 Aug 2013) Log Message: ----------- Display toWorking widget on resize Hide toWorking widget on parse error Modified Paths: -------------- branches/tora3/src/core/toresulttableview.cpp branches/tora3/src/core/toworkingwidget.h Modified: branches/tora3/src/core/toresulttableview.cpp =================================================================== --- branches/tora3/src/core/toresulttableview.cpp 2013-08-08 13:02:44 UTC (rev 4722) +++ branches/tora3/src/core/toresulttableview.cpp 2013-08-08 13:04:02 UTC (rev 4723) @@ -57,6 +57,7 @@ #include <QtCore/QSize> #include <QtCore/QTimer> +#include <QtCore/QtDebug> #include <QtGui/QClipboard> #include <QtGui/QFont> #include <QtGui/QFontMetrics> @@ -223,12 +224,14 @@ { emit firstResult(toResult::sql(), str, true); emit done(); + slotHandleDone(); Utils::toStatusMessage(str); } catch (const QString &str) { emit firstResult(toResult::sql(), str, true); emit done(); + slotHandleDone(); Utils::toStatusMessage(str); } @@ -337,6 +340,12 @@ if(ReadableColumns && VisibleColumns == 1) setColumnWidth(1, viewport()->width()); QTableView::resizeEvent(event); + + if(!Ready) + { + Working->setGeometry(this->viewport()->frameGeometry()); + Working->repaint(); + } } Modified: branches/tora3/src/core/toworkingwidget.h =================================================================== --- branches/tora3/src/core/toworkingwidget.h 2013-08-08 13:02:44 UTC (rev 4722) +++ branches/tora3/src/core/toworkingwidget.h 2013-08-08 13:04:02 UTC (rev 4723) @@ -48,7 +48,7 @@ class QPushButton; -/*! \brief Cool widget displayign the "waiting" status for queries. +/*! \brief Cool widget displaying the "waiting" status for queries. See its usage in toResultTableView or toScriptSchemaWidget for example. */ class toWorkingWidget : public QWidget This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |