diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2018-02-14 16:07:21 +0100 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-02-15 10:46:27 +0000 |
commit | 421dcfb5792a5ff5e5a9851e0c1edf6e87422680 (patch) | |
tree | a7ba1c632ce572e00f770f05c115768fb855ecc8 /tests/auto/qml/debugger | |
parent | 8190fd16f8d77b22424e3a46d9aac453ecb0fe34 (diff) |
Use QOverload instead of static_cast for connect
Change-Id: I6f43fb3bccb7cc5060852aef1ad21e7811bf79ed
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/debugger')
-rw-r--r-- | tests/auto/qml/debugger/shared/qqmldebugprocess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/debugger/shared/qqmldebugprocess.cpp b/tests/auto/qml/debugger/shared/qqmldebugprocess.cpp index 816fec6a2f..201a6b1a76 100644 --- a/tests/auto/qml/debugger/shared/qqmldebugprocess.cpp +++ b/tests/auto/qml/debugger/shared/qqmldebugprocess.cpp @@ -47,7 +47,7 @@ QQmlDebugProcess::QQmlDebugProcess(const QString &executable, QObject *parent) this, &QQmlDebugProcess::processAppOutput); connect(&m_process, &QProcess::errorOccurred, this, &QQmlDebugProcess::processError); - connect(&m_process, static_cast<void(QProcess::*)(int)>(&QProcess::finished), + connect(&m_process, QOverload<int>::of(&QProcess::finished), this, [this]() { m_timer.stop(); m_eventLoop.quit(); |