diff options
author | Andre Heinecke <[email protected]> | 2016-07-05 20:11:42 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-07-05 20:11:42 +0000 |
commit | 49a6ee50587c9d4b6f07e60ce1a939c863e7f15c (patch) | |
tree | 0108b2810269eebe3c1f4c9c0be04a411383c3b7 | |
parent | Qt: More robust lookup of Cpp's context.h (diff) | |
download | gpgme-49a6ee50587c9d4b6f07e60ce1a939c863e7f15c.tar.gz gpgme-49a6ee50587c9d4b6f07e60ce1a939c863e7f15c.zip |
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
-rw-r--r-- | lang/qt/tests/t-keylist.cpp | 2 | ||||
-rw-r--r-- | lang/qt/tests/t-keylocate.cpp | 4 | ||||
-rw-r--r-- | 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() << "[email protected]"); - 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); |