From: J-P Nurmi Date: Thu, 6 Sep 2012 13:42:03 +0000 (+0200) Subject: tst_qquickflickable: fix compilation warning X-Git-Tag: upstream/5.2.1~1191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b129882e5931981abd315ed42736bbab5cea8472;p=platform%2Fupstream%2Fqtdeclarative.git tst_qquickflickable: fix compilation warning warning: converting 'false' to pointer type for argument 2 of 'void QQmlContext::setContextProperty(const QString&, QObject*)' Change-Id: Iec0f8bba115f05c7392d6654cd1f52d06ff96e97 Reviewed-by: Caroline Chao --- diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp index d873382..7e8b8b4 100644 --- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp +++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp @@ -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(c.create()); QQuickFlickable *obj = findItem(root, "flick");