forked from qt-creator/qt-creator
Debugger: Add delay before showing progress indicator.
Change-Id: I70dc3997800649e6920c6a6bece9aef98f2b2146 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
#include <QTabWidget>
|
||||
#include <QTextEdit>
|
||||
|
||||
#include <QTimer>
|
||||
#include <cstring>
|
||||
#include <ctype.h>
|
||||
|
||||
@@ -1160,6 +1161,9 @@ WatchHandler::WatchHandler(DebuggerEngine *engine)
|
||||
m_contentsValid = true; // FIXME
|
||||
m_resetLocationScheduled = false;
|
||||
m_separatedView = new SeparatedView;
|
||||
m_requestUpdateTimer = new QTimer(this);
|
||||
m_requestUpdateTimer->setSingleShot(true);
|
||||
connect(m_requestUpdateTimer, &QTimer::timeout, m_model, &WatchModel::updateRequested);
|
||||
}
|
||||
|
||||
WatchHandler::~WatchHandler()
|
||||
@@ -1274,11 +1278,12 @@ void WatchHandler::resetValueCache()
|
||||
|
||||
void WatchHandler::updateRequested()
|
||||
{
|
||||
emit m_model->updateRequested();
|
||||
m_requestUpdateTimer->start(80);
|
||||
}
|
||||
|
||||
void WatchHandler::updateFinished()
|
||||
{
|
||||
m_requestUpdateTimer->stop();
|
||||
emit m_model->updateFinished();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user