aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/valgrind/callgrindtool.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2011-12-13 14:01:52 +0100
committerhjk <[email protected]>2011-12-13 14:04:56 +0100
commite08f51c21c2441b34b6560a18d29fdb0c8048199 (patch)
tree9a028224bc40573f09eabbcc6779b02b52ab044f /src/plugins/valgrind/callgrindtool.cpp
parent86629f18c2f220833e947725c3e3055d7989c67b (diff)
analyzer: show busy cursor as long analysis is running
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r--src/plugins/valgrind/callgrindtool.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp
index 8f12f24df5d..904e1da3325 100644
--- a/src/plugins/valgrind/callgrindtool.cpp
+++ b/src/plugins/valgrind/callgrindtool.cpp
@@ -156,7 +156,7 @@ public slots:
void stackBrowserChanged();
/// If \param busy is true, all widgets get a busy cursor when hovered
- void setBusy(bool busy);
+ void setBusyCursor(bool busy);
void dataFunctionSelected(const QModelIndex &index);
void calleeFunctionSelected(const QModelIndex &index);
@@ -285,7 +285,7 @@ void CallgrindToolPrivate::doClear(bool clearParseData)
m_proxyModel->setFilterFixedString(QString());
}
-void CallgrindToolPrivate::setBusy(bool busy)
+void CallgrindToolPrivate::setBusyCursor(bool busy)
{
QCursor cursor(busy ? Qt::BusyCursor : Qt::ArrowCursor);
m_flatView->setCursor(cursor);
@@ -468,7 +468,7 @@ void CallgrindToolPrivate::setParseData(ParseData *data)
m_stackBrowser->clear();
// unset busy state
- setBusy(false);
+ //setBusy(false);
}
void CallgrindToolPrivate::updateEventCombo()
@@ -614,6 +614,7 @@ IAnalyzerEngine *CallgrindToolPrivate::createEngine(const AnalyzerStartParameter
void CallgrindTool::startTool(StartMode mode)
{
ValgrindPlugin::startValgrindTool(this, mode);
+ d->setBusyCursor(true);
}
QWidget *CallgrindTool::createWidgets()
@@ -863,6 +864,8 @@ void CallgrindToolPrivate::engineFinished()
showParserResults(data);
else
AnalyzerManager::showStatusMessage(tr("Profiling aborted."));
+
+ setBusyCursor(false);
}
void CallgrindToolPrivate::showParserResults(const ParseData *data)
@@ -944,7 +947,7 @@ void CallgrindToolPrivate::handleShowCostsOfFunction()
void CallgrindToolPrivate::slotRequestDump()
{
- setBusy(true);
+ //setBusy(true);
m_visualisation->setText(tr("Populating..."));
dumpRequested();
}