forked from qt-creator/qt-creator
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:
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user