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:
parent
47bfbc9026
commit
49a6ee5058
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user