diff options
author | Kevin Funk <kevin.funk.ford@kdab.com> | 2017-09-20 19:20:45 +0200 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2017-09-25 10:13:14 +0000 |
commit | d3be21bff3c2fa12bad38da40f2d133beb7856f2 (patch) | |
tree | 5c2859232c443f1596f6a46927f055f57ac2331a /src/remoteobjects/qremoteobjectpendingcall.cpp | |
parent | ff649fe11e9191fff9edca3fab8ac54b227f2090 (diff) |
Cleanup: Get rid off uses of Q_PRIVATE_SLOT
Change-Id: I59b83f70a034aa5ffc432360e1bfbf173d6dffe7
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectpendingcall.cpp')
-rw-r--r-- | src/remoteobjects/qremoteobjectpendingcall.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/remoteobjects/qremoteobjectpendingcall.cpp b/src/remoteobjects/qremoteobjectpendingcall.cpp index 5813346..efade81 100644 --- a/src/remoteobjects/qremoteobjectpendingcall.cpp +++ b/src/remoteobjects/qremoteobjectpendingcall.cpp @@ -62,7 +62,9 @@ QRemoteObjectPendingCallData::~QRemoteObjectPendingCallData() void QRemoteObjectPendingCallWatcherHelper::add(QRemoteObjectPendingCallWatcher *watcher) { - connect(this, SIGNAL(finished()), watcher, SLOT(_q_finished()), Qt::QueuedConnection); + connect(this, &QRemoteObjectPendingCallWatcherHelper::finished, watcher, [watcher]() { + emit watcher->finished(watcher); + }, Qt::QueuedConnection); } void QRemoteObjectPendingCallWatcherHelper::emitSignals() @@ -148,17 +150,9 @@ QRemoteObjectPendingCall QRemoteObjectPendingCall::fromCompletedCall(const QVari class QRemoteObjectPendingCallWatcherPrivate: public QObjectPrivate { public: - void _q_finished(); - Q_DECLARE_PUBLIC(QRemoteObjectPendingCallWatcher) }; -inline void QRemoteObjectPendingCallWatcherPrivate::_q_finished() -{ - Q_Q(QRemoteObjectPendingCallWatcher); - emit q->finished(q); -} - QRemoteObjectPendingCallWatcher::QRemoteObjectPendingCallWatcher(const QRemoteObjectPendingCall &call, QObject *parent) : QObject(*new QRemoteObjectPendingCallWatcherPrivate, parent) , QRemoteObjectPendingCall(call) |