aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 14:57:55 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-12 11:38:25 +0000
commitaa3e916b98aa980271c27e8f724e5a29e1c2f311 (patch)
treea6e8d38c9ced540772dbc8703fc78eb7d87d1c57 /tests/auto
parentf783ab6049774888308e24bf6e4218a7035a4d12 (diff)
Silence warning from testing deprecated functionality
Change-Id: I6bc4ae42bc61eac4fda739baa2d9d28773823ef0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 7052ea9de8913ed2e62638ba9b00ef3870d9fbcc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/qqmlfileselector/tst_qqmlfileselector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlfileselector/tst_qqmlfileselector.cpp b/tests/auto/qml/qqmlfileselector/tst_qqmlfileselector.cpp
index 2d618170d4..bc5cd2cdae 100644
--- a/tests/auto/qml/qqmlfileselector/tst_qqmlfileselector.cpp
+++ b/tests/auto/qml/qqmlfileselector/tst_qqmlfileselector.cpp
@@ -86,7 +86,10 @@ void tst_qqmlfileselector::basicTestCached()
void tst_qqmlfileselector::applicationEngineTest()
{
QQmlApplicationEngine engine;
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
QQmlFileSelector* selector = QQmlFileSelector::get(&engine);
+QT_WARNING_POP
QVERIFY(selector != nullptr);
selector->setExtraSelectors(QStringList() << "basic");