From 49a6ee50587c9d4b6f07e60ce1a939c863e7f15c Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Tue, 5 Jul 2016 22:11:42 +0200 Subject: [PATCH] Qt: Fix test build with Qt < 5.4.0 * lang/qt/tests/t-keylist.cpp, lang/qt/tests/t-keylocate.cpp, lang/qt/tests/t-ownertrust.cpp: Use old style SIGNAl syntax for QSignalSpy --- lang/qt/tests/t-keylist.cpp | 2 +- lang/qt/tests/t-keylocate.cpp | 4 ++-- lang/qt/tests/t-ownertrust.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp index 40cb13c0..5d63fcab 100644 --- a/lang/qt/tests/t-keylist.cpp +++ b/lang/qt/tests/t-keylist.cpp @@ -69,7 +69,7 @@ private Q_SLOTS: Q_EMIT asyncDone(); }); job->start(QStringList() << "alfa@example.net"); - QSignalSpy spy (this, &KeyListTest::asyncDone); + QSignalSpy spy (this, SIGNAL(asyncDone())); Q_ASSERT(spy.wait()); } diff --git a/lang/qt/tests/t-keylocate.cpp b/lang/qt/tests/t-keylocate.cpp index 12ab551a..682f722c 100644 --- a/lang/qt/tests/t-keylocate.cpp +++ b/lang/qt/tests/t-keylocate.cpp @@ -80,7 +80,7 @@ private Q_SLOTS: Q_EMIT asyncDone(); }); job->start(QStringList() << mTestpattern); - QSignalSpy spy (this, &KeyLocateTest::asyncDone); + QSignalSpy spy (this, SIGNAL(asyncDone())); Q_ASSERT(spy.wait()); qputenv("GNUPGHOME", oldHome.toUtf8()); } @@ -111,7 +111,7 @@ private Q_SLOTS: Q_EMIT asyncDone(); }); job->start(QStringList() << mTestpattern); - QSignalSpy spy (this, &KeyLocateTest::asyncDone); + QSignalSpy spy (this, SIGNAL(asyncDone())); Q_ASSERT(spy.wait()); } diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp index eb6c3db3..9a0c1cd0 100644 --- a/lang/qt/tests/t-ownertrust.cpp +++ b/lang/qt/tests/t-ownertrust.cpp @@ -70,7 +70,7 @@ private Q_SLOTS: Q_EMIT asyncDone(); }); job2->start(key, Key::Ultimate); - QSignalSpy spy (this, &ChangeOwnerTrustTest::asyncDone); + QSignalSpy spy (this, SIGNAL(asyncDone())); Q_ASSERT(spy.wait()); job = openpgp()->keyListJob(false, true, true);