aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/main.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-07-20 15:35:50 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-07-28 09:17:49 +0000
commitbd48f0e5edb1d5ce10529360fb9d14e7b7135022 (patch)
tree8fd715131155292216389845ffe78ec9fbd43b69 /tools/qmlprofiler/main.cpp
parentb096d9e4e7187a1965bd15d1c5a55f228ec3ae00 (diff)
Tooling: Convert connects to Qt5 style
Change-Id: I6746b777f73d047f5cf610bfca9b320ac1e13676 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools/qmlprofiler/main.cpp')
-rw-r--r--tools/qmlprofiler/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qmlprofiler/main.cpp b/tools/qmlprofiler/main.cpp
index d3e2beb83f..c7cb979ff8 100644
--- a/tools/qmlprofiler/main.cpp
+++ b/tools/qmlprofiler/main.cpp
@@ -39,8 +39,10 @@ int main(int argc, char *argv[])
QThread listenerThread;
CommandListener listener;
listener.moveToThread(&listenerThread);
- QObject::connect(&listener, SIGNAL(command(QString)), &app, SLOT(userCommand(QString)));
- QObject::connect(&app, SIGNAL(readyForCommand()), &listener, SLOT(readCommand()));
+ QObject::connect(&listener, &CommandListener::command,
+ &app, &QmlProfilerApplication::userCommand);
+ QObject::connect(&app, &QmlProfilerApplication::readyForCommand,
+ &listener, &CommandListener::readCommand);
listenerThread.start();
int exitValue = app.exec();
listenerThread.quit();