aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-08-22 10:53:34 +0200
committerhjk <hjk@qt.io>2018-08-23 08:57:10 +0000
commite6e38df436aab431d7682b22183790898e599350 (patch)
treedd2b3dd7318b72944b82d20aedd9cab703b209c7 /src/plugins/qmlprofiler
parentaca14a36e9231d37c00379e13ebf6bcbdd248ddb (diff)
Debugger: Shift some perspective related API to the perspective class
Also, use QString uniformly for the (now rarely used) perspective ids. Change-Id: I682062e7d179d0fcfd309e7714713bd1218bd8bb Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index a496012d103..d42416a4a98 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp
@@ -547,7 +547,7 @@ ProjectExplorer::RunControl *QmlProfilerTool::attachToWaitingApplication()
serverUrl.setHost(toolControl.host());
serverUrl.setPort(port);
- Debugger::selectPerspective(Constants::QmlProfilerPerspectiveId);
+ d->m_viewContainer->perspective()->select();
auto runConfig = RunConfiguration::startupRunConfiguration();
auto runControl = new RunControl(runConfig, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
@@ -616,7 +616,7 @@ void QmlProfilerTool::showLoadDialog()
if (!checkForUnsavedNotes())
return;
- Debugger::selectPerspective(QmlProfilerPerspectiveId);
+ d->m_viewContainer->perspective()->select();
QLatin1String tFile(QtdFileExtension);
QLatin1String zFile(QztFileExtension);
@@ -640,8 +640,8 @@ void QmlProfilerTool::profileStartupProject()
{
if (!prepareTool())
return;
- Debugger::selectPerspective(Constants::QmlProfilerPerspectiveId);
- ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
+ d->m_viewContainer->perspective()->select();
+ ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
}
QAction *QmlProfilerTool::startAction() const