QmlProfiler: handling start/stop actions

Change-Id: I940025ba1f35f6136b4a12936b9e508ccb9d0d1f
Reviewed-on: http://codereview.qt.nokia.com/1160
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christiaan Janssen
2011-07-05 12:56:49 +02:00
committed by hjk
parent 89e0dd2d2f
commit 45212d3c1a
3 changed files with 9 additions and 0 deletions

View File

@@ -679,6 +679,7 @@ void AnalyzerManagerPrivate::addTool(IAnalyzerTool *tool, const StartModes &mode
void AnalyzerManagerPrivate::handleToolStarted() void AnalyzerManagerPrivate::handleToolStarted()
{ {
m_isRunning = true; // FIXME: Make less global. m_isRunning = true; // FIXME: Make less global.
updateRunActions();
} }
void AnalyzerManagerPrivate::handleToolFinished() void AnalyzerManagerPrivate::handleToolFinished()
@@ -856,6 +857,11 @@ QAction *AnalyzerManager::stopAction()
return m_instance->d->m_stopAction; return m_instance->d->m_stopAction;
} }
void AnalyzerManager::handleToolStarted()
{
m_instance->d->handleToolStarted();
}
void AnalyzerManager::handleToolFinished() void AnalyzerManager::handleToolFinished()
{ {
m_instance->d->handleToolFinished(); m_instance->d->handleToolFinished();

View File

@@ -92,6 +92,7 @@ public:
static void showStatusMessage(const QString &message, int timeoutMS = 10000); static void showStatusMessage(const QString &message, int timeoutMS = 10000);
static void showPermanentStatusMessage(const QString &message); static void showPermanentStatusMessage(const QString &message);
static void handleToolStarted();
static void handleToolFinished(); static void handleToolFinished();
static QAction *stopAction(); static QAction *stopAction();

View File

@@ -156,6 +156,8 @@ void QmlProfilerEngine::start()
d->m_running = true; d->m_running = true;
d->m_delayedDelete = false; d->m_delayedDelete = false;
AnalyzerManager::handleToolStarted();
} }
void QmlProfilerEngine::stop() void QmlProfilerEngine::stop()