From e7d5cacd0fd2c5890f37929f0dd34490ca493b6b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 06:59:52 -0400 Subject: [PATCH] CGeneratePropertyNamesDialog: Make use of Qt 5 signals and slots --- src/Editor/CGeneratePropertyNamesDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/CGeneratePropertyNamesDialog.cpp b/src/Editor/CGeneratePropertyNamesDialog.cpp index 196e2c0b..7a2a67f4 100644 --- a/src/Editor/CGeneratePropertyNamesDialog.cpp +++ b/src/Editor/CGeneratePropertyNamesDialog.cpp @@ -162,12 +162,12 @@ void CGeneratePropertyNamesDialog::StartGeneration() Params.PrintToLog = mpUI->LogOutputCheckBox->isChecked(); // Run the task and configure ourselves so we can update correctly - connect( &mFutureWatcher, SIGNAL(finished()), this, SLOT(GenerationComplete()) ); + connect(&mFutureWatcher, &QFutureWatcher::finished, this, &CGeneratePropertyNamesDialog::GenerationComplete); mFuture = QtConcurrent::run(&mGenerator, &CPropertyNameGenerator::Generate, Params, &mNotifier); mFutureWatcher.setFuture(mFuture); mUpdateTimer.start(500); - connect( &mUpdateTimer, SIGNAL(timeout()), this, SLOT(CheckForNewResults()) ); + connect( &mUpdateTimer, &QTimer::timeout, this, &CGeneratePropertyNamesDialog::CheckForNewResults); UpdateUI(); }