summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-10-25 18:07:57 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-10-26 16:57:01 +0200
commit4650a4433b20bb1ad931c0012b7710116b1ad67a (patch)
tree6a9dbe41f1eb4213a5bb8490cc21d8a5fc9ad55f /tests/auto/widgets/widgets
parent31dc17c13a1977ce60bf9ec73a8762b0087c48df (diff)
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>
Diffstat (limited to 'tests/auto/widgets/widgets')
-rw-r--r--tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp
index 8f3451a4c6..969fe7df15 100644
--- a/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp
+++ b/tests/auto/widgets/widgets/qdatetimeedit/tst_qdatetimeedit.cpp
@@ -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()