analyzer: show busy cursor as long analysis is running

Change-Id: I93ad6ac5e79f5e8a6f843a90b244bfc0587c070c
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-12-13 14:01:52 +01:00
committed by hjk
parent 86629f18c2
commit e08f51c21c
4 changed files with 20 additions and 8 deletions

View File

@@ -465,6 +465,7 @@ void MemcheckTool::startTool(StartMode mode)
void MemcheckTool::engineStarting(const IAnalyzerEngine *engine)
{
setBusyCursor(true);
clearErrorView();
QString dir;
@@ -548,6 +549,13 @@ void MemcheckTool::finished()
m_goNext->setEnabled(n > 1);
const QString msg = AnalyzerManager::msgToolFinished(displayName(), n);
AnalyzerManager::showStatusMessage(msg);
setBusyCursor(false);
}
void MemcheckTool::setBusyCursor(bool busy)
{
QCursor cursor(busy ? Qt::BusyCursor : Qt::ArrowCursor);
m_errorView->setCursor(cursor);
}
} // namespace Internal