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
This commit is contained in:
Andre Heinecke 2016-07-05 22:11:42 +02:00
parent 47bfbc9026
commit 49a6ee5058
3 changed files with 4 additions and 4 deletions

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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);