diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2018-12-03 14:22:38 +0200 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@qt.io> | 2018-12-03 13:56:02 +0000 |
commit | b55b3692f6cc57f8a7ef972388504b5133331ceb (patch) | |
tree | 25ea57e77ab074eb2951786253df8e131e835e8b /tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp | |
parent | 3a025d75fd470dfcda5ae67e5b8ece0b00cdc8c9 (diff) |
Fix compilation with gcc 4.8
GCC 4.8 doesn't like using QPointers in signal connections.
Change-Id: Ide55318374183e52eaf09176a118f7d22b7cfd6e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp')
-rw-r--r-- | tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp index b4f8f389cf..4c4c514832 100644 --- a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp +++ b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp @@ -101,11 +101,11 @@ QList<QQmlDebugClient *> tst_QQmlPreview::createClients() { m_client = new QQmlPreviewClient(m_connection); - QObject::connect(m_client, &QQmlPreviewClient::request, this, &tst_QQmlPreview::serveRequest); - QObject::connect(m_client, &QQmlPreviewClient::error, this, [this](const QString &error) { + QObject::connect(m_client.data(), &QQmlPreviewClient::request, this, &tst_QQmlPreview::serveRequest); + QObject::connect(m_client.data(), &QQmlPreviewClient::error, this, [this](const QString &error) { m_serviceErrors.append(error); }); - QObject::connect(m_client, &QQmlPreviewClient::fps, + QObject::connect(m_client.data(), &QQmlPreviewClient::fps, this, [this](const QQmlPreviewClient::FpsInfo &info) { m_frameStats = info; }); |