Commit 34a7ff07 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Main: Use Qt5-style connects

Change-Id: I7619495818728f7b7196c5f8447bf446eedef248
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 8de20c9d
......@@ -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();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment