@@ -237,8 +237,8 @@ bool ControllerEngine::loadScriptFiles(const QList<QString>& scriptPaths,
237237 }
238238 }
239239
240- connect (&m_scriptWatcher, SIGNAL ( fileChanged (QString)) ,
241- this , SLOT ( scriptHasChanged (QString)) );
240+ connect (&m_scriptWatcher, &QFileSystemWatcher:: fileChanged,
241+ this , &ControllerEngine:: scriptHasChanged);
242242
243243 emit (initialized ());
244244
@@ -248,8 +248,8 @@ bool ControllerEngine::loadScriptFiles(const QList<QString>& scriptPaths,
248248// Slot to run when a script file has changed
249249void ControllerEngine::scriptHasChanged (const QString& scriptFilename) {
250250 Q_UNUSED (scriptFilename);
251- disconnect (&m_scriptWatcher, SIGNAL ( fileChanged (QString)) ,
252- this , SLOT ( scriptHasChanged (QString)) );
251+ disconnect (&m_scriptWatcher, &QFileSystemWatcher:: fileChanged,
252+ this , &ControllerEngine:: scriptHasChanged);
253253 reloadScripts ();
254254}
255255
@@ -402,8 +402,8 @@ void ControllerEngine::scriptErrorDialog(const QString& detailedError) {
402402 if (ErrorDialogHandler::instance ()->requestErrorDialog (props)) {
403403 m_bDisplayingExceptionDialog = true ;
404404 // Enable custom handling of the dialog buttons
405- connect (ErrorDialogHandler::instance (), SIGNAL ( stdButtonClicked (QString, QMessageBox::StandardButton)) ,
406- this , SLOT ( errorDialogButton (QString, QMessageBox::StandardButton)) );
405+ connect (ErrorDialogHandler::instance (), &ErrorDialogHandler::stdButtonClicked ,
406+ this , &ControllerEngine::errorDialogButton );
407407 }
408408}
409409
@@ -417,10 +417,8 @@ void ControllerEngine::errorDialogButton(const QString& key, QMessageBox::Standa
417417
418418 m_bDisplayingExceptionDialog = false ;
419419 // Something was clicked, so disable this signal now
420- disconnect (ErrorDialogHandler::instance (),
421- SIGNAL (stdButtonClicked (QString, QMessageBox::StandardButton)),
422- this ,
423- SLOT (errorDialogButton (QString, QMessageBox::StandardButton)));
420+ disconnect (ErrorDialogHandler::instance (), &ErrorDialogHandler::stdButtonClicked,
421+ this , &ControllerEngine::errorDialogButton);
424422
425423 if (button == QMessageBox::Retry) {
426424 reloadScripts ();
0 commit comments