Make QValidator tests do not require a QApplication
Change-Id: I9aae997e33672203470b0429cc061a1adf88dfe9 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
49f277482e
commit
491247acd4
@ -286,5 +286,5 @@ void tst_QIntValidator::notifySignals()
|
||||
QCOMPARE(changedSpy.count(), 6);
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_QIntValidator)
|
||||
QTEST_APPLESS_MAIN(tst_QIntValidator)
|
||||
#include "tst_qintvalidator.moc"
|
||||
|
@ -122,5 +122,5 @@ void tst_QRegExpValidator::validate()
|
||||
QCOMPARE(changedSpy.count(), 1);
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_QRegExpValidator)
|
||||
QTEST_APPLESS_MAIN(tst_QRegExpValidator)
|
||||
#include "tst_qregexpvalidator.moc"
|
||||
|
Loading…
Reference in New Issue
Block a user