summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectreplica.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/remoteobjects/qremoteobjectreplica.cpp')
-rw-r--r--src/remoteobjects/qremoteobjectreplica.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/remoteobjects/qremoteobjectreplica.cpp b/src/remoteobjects/qremoteobjectreplica.cpp
index 04d9ca5..6b2c6cf 100644
--- a/src/remoteobjects/qremoteobjectreplica.cpp
+++ b/src/remoteobjects/qremoteobjectreplica.cpp
@@ -346,7 +346,7 @@ bool QConnectedReplicaImplementation::waitForSource(int timeout)
Qt::DirectConnection, nullptr);
if (timeout >= 0) {
- QTimer::singleShot(timeout, &loop, SLOT(quit()));
+ QTimer::singleShot(timeout, &loop, &QEventLoop::quit);
}
// enter the event loop and wait for a reply
@@ -437,8 +437,9 @@ bool QConnectedReplicaImplementation::waitForFinished(const QRemoteObjectPending
call.d->mutex.unlock();
QEventLoop loop;
- loop.connect(call.d->watcherHelper.data(), SIGNAL(finished()), SLOT(quit()));
- QTimer::singleShot(timeout, &loop, SLOT(quit()));
+ loop.connect(call.d->watcherHelper.data(), &QRemoteObjectPendingCallWatcherHelper::finished,
+ &loop, &QEventLoop::quit);
+ QTimer::singleShot(timeout, &loop, &QEventLoop::quit);
// enter the event loop and wait for a reply
loop.exec(QEventLoop::ExcludeUserInputEvents | QEventLoop::WaitForMoreEvents);