From 34a7ff07b78ce3cf8fe57621894e578538d71dcd Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 31 May 2016 22:35:43 +0300 Subject: [PATCH] Main: Use Qt5-style connects Change-Id: I7619495818728f7b7196c5f8447bf446eedef248 Reviewed-by: Eike Ziller --- src/app/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index b3b8907d133..425b015c8aa 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -515,14 +515,14 @@ int main(int argc, char **argv) } // Set up remote arguments. - QObject::connect(&app, SIGNAL(messageReceived(QString,QObject*)), - &pluginManager, SLOT(remoteArguments(QString,QObject*))); + QObject::connect(&app, &SharedTools::QtSingleApplication::messageReceived, + &pluginManager, &PluginManager::remoteArguments); QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(), SLOT(fileOpenRequest(QString))); // shutdown plugin manager on the exit - QObject::connect(&app, SIGNAL(aboutToQuit()), &pluginManager, SLOT(shutdown())); + QObject::connect(&app, &QCoreApplication::aboutToQuit, &pluginManager, &PluginManager::shutdown); return app.exec(); }