diff options
author | hjk <hjk@theqtcompany.com> | 2016-03-01 07:51:06 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-03-02 08:08:15 +0000 |
commit | f3bd7412ef510c77a5e811d8ef85f371f0b67735 (patch) | |
tree | d64dadba00b23711ea0cbdbaa3cfbd075ff3c4de /src/plugins/valgrind/callgrindtool.cpp | |
parent | 6492d16408da19c918cf3cd2d077fc377c7fc538 (diff) | |
download | qt-creator-f3bd7412ef510c77a5e811d8ef85f371f0b67735.tar.gz |
Debugger: Remove return value from AnalyzerManager::createDockWidget()
Change-Id: If6cd2a68f2f99a1977ded0f05a12790194143274
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index f8d0744234..de22d4e502 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -618,18 +618,18 @@ QWidget *CallgrindToolPrivate::createWidgets() updateCostFormat(); - AnalyzerManager::createDockWidget(m_callersView, CallgrindCallersDock); - AnalyzerManager::createDockWidget(m_flatView, CallgrindFlatDock); - AnalyzerManager::createDockWidget(m_calleesView, CallgrindCalleesDock); - AnalyzerManager::createDockWidget(m_visualisation, CallgrindVisualizationDock); - - Perspective perspective(CallgrindPerspective); - perspective.addDock(CallgrindFlatDock, Id(), Perspective::SplitVertical); - perspective.addDock(CallgrindCalleesDock, Id(), Perspective::SplitVertical); - perspective.addDock(CallgrindCallersDock, CallgrindCalleesDock, Perspective::SplitHorizontal); - perspective.addDock(CallgrindVisualizationDock, Id(), Perspective::SplitVertical, - false, Qt::RightDockWidgetArea); - AnalyzerManager::addPerspective(perspective); + AnalyzerManager::registerDockWidget(CallgrindCallersDockId, m_callersView); + AnalyzerManager::registerDockWidget(CallgrindFlatDockId, m_flatView); + AnalyzerManager::registerDockWidget(CallgrindCalleesDockId, m_calleesView); + AnalyzerManager::registerDockWidget(CallgrindVisualizationDockId, m_visualisation); + + AnalyzerManager::registerPerspective(CallgrindPerspectiveId, { + { CallgrindFlatDockId, Id(), Perspective::SplitVertical }, + { CallgrindCalleesDockId, Id(), Perspective::SplitVertical }, + { CallgrindCallersDockId, CallgrindCalleesDockId, Perspective::SplitHorizontal }, + { CallgrindVisualizationDockId, Id(), Perspective::SplitVertical, + false, Qt::RightDockWidgetArea } + }); // // Control Widget @@ -823,7 +823,7 @@ void CallgrindToolPrivate::engineFinished() if (data) showParserResults(data); else - AnalyzerManager::showPermanentStatusMessage(CallgrindPerspective, tr("Profiling aborted.")); + AnalyzerManager::showPermanentStatusMessage(CallgrindPerspectiveId, tr("Profiling aborted.")); setBusyCursor(false); } @@ -842,7 +842,7 @@ void CallgrindToolPrivate::showParserResults(const ParseData *data) } else { msg = tr("Parsing failed."); } - AnalyzerManager::showPermanentStatusMessage(CallgrindPerspective, msg); + AnalyzerManager::showPermanentStatusMessage(CallgrindPerspectiveId, msg); } void CallgrindToolPrivate::editorOpened(IEditor *editor) @@ -907,7 +907,7 @@ void CallgrindToolPrivate::loadExternalLogFile() return; } - AnalyzerManager::showPermanentStatusMessage(CallgrindPerspective, tr("Parsing Profile Data...")); + AnalyzerManager::showPermanentStatusMessage(CallgrindPerspectiveId, tr("Parsing Profile Data...")); QCoreApplication::processEvents(); Parser parser; |