Suppress deprecation warnings in test of QDTE::timeSpec property
The tests are suitably #if-ed to be omitted once the property is gone, but the compiler can still warn. Change-Id: I20efcf9bb40fe6d7ad7e21b64e5400f71c0a0b15 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
31dc17c13a
commit
4650a4433b
@ -3501,6 +3501,8 @@ void tst_QDateTimeEdit::timeSpec_data()
|
||||
QTest::newRow("setTimeSpec") << false;
|
||||
}
|
||||
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_DEPRECATED
|
||||
void tst_QDateTimeEdit::timeSpec()
|
||||
{
|
||||
QFETCH(bool, useSetProperty);
|
||||
@ -3541,6 +3543,7 @@ void tst_QDateTimeEdit::timeSpec()
|
||||
QSKIP("Not tested in the GMT timezone");
|
||||
}
|
||||
}
|
||||
QT_WARNING_POP
|
||||
#endif // test deprecated timeSpec property
|
||||
|
||||
void tst_QDateTimeEdit::timeZoneBug()
|
||||
|
Loading…
x
Reference in New Issue
Block a user