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:
Giuseppe D'Angelo 2012-10-07 16:09:46 +01:00 committed by The Qt Project
parent 49f277482e
commit 491247acd4
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"