From 90135a5b7a31c30322f19e403d697780b552bf19 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 10 Jun 2015 15:35:33 +0200 Subject: Convert to Qt 5 connect syntax Convert to new signal/slot syntax where it does not make things more complicated: connections where the signal or slot is an overloaded method, or where the receiver method is not in a QObject, are left alone. The new syntax allows compile-time checking of the connection. Change-Id: I2cc3c93b9812797bd67f64a8728569491eeec668 Reviewed-by: Karsten Heimrich Reviewed-by: Jarek Kobus --- src/libs/installer/fileutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/installer/fileutils.cpp') diff --git a/src/libs/installer/fileutils.cpp b/src/libs/installer/fileutils.cpp index 9f7890fbc..a44db1126 100644 --- a/src/libs/installer/fileutils.cpp +++ b/src/libs/installer/fileutils.cpp @@ -270,7 +270,7 @@ void QInstaller::removeDirectoryThreaded(const QString &path, bool ignoreErrors) { RemoveDirectoryThread thread(path, ignoreErrors); QEventLoop loop; - QObject::connect(&thread, SIGNAL(finished()), &loop, SLOT(quit())); + QObject::connect(&thread, &RemoveDirectoryThread::finished, &loop, &QEventLoop::quit); thread.start(); loop.exec(); if (!thread.error().isEmpty()) -- cgit v1.2.3