aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-10-30 12:35:17 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-11-02 10:12:42 +0000
commitb4e6591188160a29ba87580cbf689051b4ee9aaa (patch)
tree28da4f9b0f876d3cbb59618c6feda58e48138007 /src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
parent4b8a14e10fbb68167aac30e40bbeccf02336ba67 (diff)
QmlProfiler: Convert connections to Qt5 style
Change-Id: I1a490add706cd0cfce3f243e4ebc32a8c9a975c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.cpp')
-rw-r--r--src/plugins/qmlprofiler/localqmlprofilerrunner.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
index 86454d38f4..b955645bef 100644
--- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
+++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
@@ -82,12 +82,13 @@ Analyzer::AnalyzerRunControl *LocalQmlProfilerRunner::createLocalRunControl(
LocalQmlProfilerRunner *runner = new LocalQmlProfilerRunner(conf, engine);
- QObject::connect(runner, SIGNAL(stopped()), engine, SLOT(notifyRemoteFinished()));
- QObject::connect(runner, SIGNAL(appendMessage(QString,Utils::OutputFormat)),
- engine, SLOT(logApplicationMessage(QString,Utils::OutputFormat)));
- QObject::connect(engine, SIGNAL(starting(const Analyzer::AnalyzerRunControl*)), runner,
- SLOT(start()));
- QObject::connect(rc, SIGNAL(finished()), runner, SLOT(stop()));
+ QObject::connect(runner, &LocalQmlProfilerRunner::stopped,
+ engine, &QmlProfilerRunControl::notifyRemoteFinished);
+ QObject::connect(runner, &LocalQmlProfilerRunner::appendMessage,
+ engine, &QmlProfilerRunControl::logApplicationMessage);
+ QObject::connect(engine, &Analyzer::AnalyzerRunControl::starting,
+ runner, &LocalQmlProfilerRunner::start);
+ QObject::connect(rc, &RunControl::finished, runner, &LocalQmlProfilerRunner::stop);
return rc;
}
@@ -109,8 +110,8 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio
m_configuration(configuration),
m_engine(engine)
{
- connect(&m_launcher, SIGNAL(appendMessage(QString,Utils::OutputFormat)),
- this, SIGNAL(appendMessage(QString,Utils::OutputFormat)));
+ connect(&m_launcher, &ApplicationLauncher::appendMessage,
+ this, &LocalQmlProfilerRunner::appendMessage);
}
LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
@@ -132,8 +133,8 @@ void LocalQmlProfilerRunner::start()
m_launcher.setWorkingDirectory(m_configuration.workingDirectory);
m_launcher.setEnvironment(m_configuration.environment);
- connect(&m_launcher, SIGNAL(processExited(int,QProcess::ExitStatus)),
- this, SLOT(spontaneousStop(int,QProcess::ExitStatus)));
+ connect(&m_launcher, &ApplicationLauncher::processExited,
+ this, &LocalQmlProfilerRunner::spontaneousStop);
m_launcher.start(ApplicationLauncher::Gui, m_configuration.executable, arguments);
emit started();
@@ -148,8 +149,8 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus
qWarning("QmlProfiler: Application exited (exit code %d).", exitCode);
}
- disconnect(&m_launcher, SIGNAL(processExited(int,QProcess::ExitStatus)),
- this, SLOT(spontaneousStop(int,QProcess::ExitStatus)));
+ disconnect(&m_launcher, &ApplicationLauncher::processExited,
+ this, &LocalQmlProfilerRunner::spontaneousStop);
emit stopped();
}