forked from qt-creator/qt-creator
Main: Use Qt5-style connects
Change-Id: I7619495818728f7b7196c5f8447bf446eedef248 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
8de20c9d6c
commit
34a7ff07b7
@@ -515,14 +515,14 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set up remote arguments.
|
// Set up remote arguments.
|
||||||
QObject::connect(&app, SIGNAL(messageReceived(QString,QObject*)),
|
QObject::connect(&app, &SharedTools::QtSingleApplication::messageReceived,
|
||||||
&pluginManager, SLOT(remoteArguments(QString,QObject*)));
|
&pluginManager, &PluginManager::remoteArguments);
|
||||||
|
|
||||||
QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(),
|
QObject::connect(&app, SIGNAL(fileOpenRequest(QString)), coreplugin->plugin(),
|
||||||
SLOT(fileOpenRequest(QString)));
|
SLOT(fileOpenRequest(QString)));
|
||||||
|
|
||||||
// shutdown plugin manager on the exit
|
// 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();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user