forked from qt-creator/qt-creator
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7a9cc3499e
commit
5646480f27
@@ -315,14 +315,14 @@ ICore::ICore(MainWindow *mainwindow)
|
||||
m_instance = this;
|
||||
m_mainwindow = mainwindow;
|
||||
// Save settings once after all plugins are initialized:
|
||||
connect(PluginManager::instance(), SIGNAL(initializationDone()),
|
||||
this, SLOT(saveSettings()));
|
||||
connect(PluginManager::instance(), &PluginManager::initializationDone,
|
||||
this, &ICore::saveSettings);
|
||||
connect(PluginManager::instance(), &PluginManager::testsFinished, [this] (int failedTests) {
|
||||
emit coreAboutToClose();
|
||||
QCoreApplication::exit(failedTests);
|
||||
});
|
||||
connect(m_mainwindow, SIGNAL(newItemDialogRunningChanged()),
|
||||
this, SIGNAL(newItemDialogRunningChanged()));
|
||||
connect(m_mainwindow, &MainWindow::newItemDialogRunningChanged,
|
||||
this, &ICore::newItemDialogRunningChanged);
|
||||
}
|
||||
|
||||
ICore::~ICore()
|
||||
|
||||
Reference in New Issue
Block a user