summaryrefslogtreecommitdiffstats
path: root/tests/auto/coretest
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-01-11 11:17:55 +0000
committerMike Krus <mike.krus@kdab.com>2020-01-14 08:04:10 +0000
commit0dc38ecbbff992701756d92821e20f360821710f (patch)
tree37318a566d80d8fc54dfa1b421a62ec7ac6a7fd0 /tests/auto/coretest
parenta40654ad451569a19b49bd2d6b9cfc4fa0cc12b8 (diff)
Fix deprecation handling
Change-Id: If981333f7a3d78028d4f08c59867453d4192b955 Task-number: QTBUG-81058 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests/auto/coretest')
-rw-r--r--tests/auto/coretest/qbackendnodetester.cpp6
-rw-r--r--tests/auto/coretest/testpostmanarbiter.cpp4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/coretest/qbackendnodetester.cpp b/tests/auto/coretest/qbackendnodetester.cpp
index be9767828..bd5fb85d1 100644
--- a/tests/auto/coretest/qbackendnodetester.cpp
+++ b/tests/auto/coretest/qbackendnodetester.cpp
@@ -57,15 +57,21 @@ void QBackendNodeTester::simulateInitialization(QNode *frontend, QBackendNode *b
{
Q_ASSERT(frontend);
Q_ASSERT(backend);
+ QT_WARNING_PUSH
+ QT_WARNING_DISABLE_DEPRECATED
const auto change = frontend->createNodeCreationChange();
backend->setPeerId(change->subjectId());
backend->setEnabled(change->isNodeEnabled());
backend->initializeFromPeer(change);
+ QT_WARNING_POP
}
void QBackendNodeTester::sceneChangeEvent(QBackendNode *backend, const Qt3DCore::QSceneChangePtr &e)
{
+ QT_WARNING_PUSH
+ QT_WARNING_DISABLE_DEPRECATED
backend->sceneChangeEvent(e);
+ QT_WARNING_POP
}
} // namespace Qt3DCore
diff --git a/tests/auto/coretest/testpostmanarbiter.cpp b/tests/auto/coretest/testpostmanarbiter.cpp
index d1263b8f7..d2e404809 100644
--- a/tests/auto/coretest/testpostmanarbiter.cpp
+++ b/tests/auto/coretest/testpostmanarbiter.cpp
@@ -26,6 +26,10 @@
**
****************************************************************************/
+// TODO Remove in Qt6
+#include <QtCore/qcompilerdetection.h>
+QT_WARNING_DISABLE_DEPRECATED
+
#include "testpostmanarbiter_p.h"
#include <Qt3DCore/private/qnode_p.h>