aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-08-24 14:11:03 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-09-02 04:19:22 +0000
commit06f11da5e17d292eab510b3d9f7c7455108bb91c (patch)
treecb87a617222cfb0f1cef177294a523115b3d5783 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
parent9713146cbc91d7e41af73ac5af1ec09bce028e1b (diff)
Tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases.
Fix usage of API that is marked deprecated. Change-Id: Ia887437f99b9ce207891ca19bc49294acb7d629d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
-rw-r--r--tests/auto/quick/qquickwindow/tst_qquickwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
index e1ea068a62..0ac15c28ce 100644
--- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
+++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
@@ -393,7 +393,7 @@ void tst_qquickwindow::openglContextCreatedSignal()
QVERIFY(spy.size() > 0);
QVariant ctx = spy.at(0).at(0);
- QCOMPARE(qVariantValue<QOpenGLContext *>(ctx), window.openglContext());
+ QCOMPARE(qvariant_cast<QOpenGLContext *>(ctx), window.openglContext());
}
void tst_qquickwindow::aboutToStopSignal()