From b129882e5931981abd315ed42736bbab5cea8472 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 6 Sep 2012 15:42:03 +0200 Subject: [PATCH] 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 --- tests/auto/quick/qquickflickable/tst_qquickflickable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.7.4