summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-06-24 04:19:45 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-06-24 04:19:45 (GMT)
commit9d6ccfea89ae99b747f70ece71185868f189d0f9 (patch)
tree30590080c8c664a3b263a12055bfeb1bc9381091 /tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
parentbb3ae9779730b6d4a0442ea5553b0dfab1a3da2b (diff)
downloadQt-9d6ccfea89ae99b747f70ece71185868f189d0f9.zip
Qt-9d6ccfea89ae99b747f70ece71185868f189d0f9.tar.gz
Qt-9d6ccfea89ae99b747f70ece71185868f189d0f9.tar.bz2
Expose the Flickable's internal contentItem
So that dynamically created items can be parented to the contentItem and be flicked with the rest of the content. Task-number: QTBUG-11674 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
index 2ba5574..678996b 100644
--- a/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
+++ b/tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
@@ -147,6 +147,10 @@ void tst_qdeclarativeflickable::properties()
QCOMPARE(obj->pressDelay(), 200);
QCOMPARE(obj->maximumFlickVelocity(), 2000.);
+ QVERIFY(obj->property("ok").toBool() == false);
+ QMetaObject::invokeMethod(obj, "check");
+ QVERIFY(obj->property("ok").toBool() == true);
+
delete obj;
}