tst_qquickflickable: fix compilation warning
authorJ-P Nurmi <j-p.nurmi@nokia.com>
Thu, 6 Sep 2012 13:42:03 +0000 (15:42 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Sep 2012 09:23:14 +0000 (11:23 +0200)
warning: converting 'false' to pointer type for argument 2 of
'void QQmlContext::setContextProperty(const QString&, QObject*)'

Change-Id: Iec0f8bba115f05c7392d6654cd1f52d06ff96e97
Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp

index d873382..7e8b8b4 100644 (file)
@@ -424,7 +424,7 @@ void tst_qquickflickable::flickableDirection()
 void tst_qquickflickable::resizeContent()
 {
     QQmlEngine engine;
-    engine.rootContext()->setContextProperty("setRebound", false);
+    engine.rootContext()->setContextProperty("setRebound", QVariant::fromValue(false));
     QQmlComponent c(&engine, testFileUrl("resize.qml"));
     QQuickItem *root = qobject_cast<QQuickItem*>(c.create());
     QQuickFlickable *obj = findItem<QQuickFlickable>(root, "flick");