[Pkg-gnupg-commit] [gpgme] 199/412: Qt: Fix test build with Qt < 5.4.0

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit 49a6ee50587c9d4b6f07e60ce1a939c863e7f15c
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Tue Jul 5 22:11:42 2016 +0200

    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 40cb13c..5d63fca 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 at 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 12ab551..682f722 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 eb6c3db..9a0c1cd 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list