diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-06-24 04:19:45 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-06-24 04:19:45 (GMT) |
commit | 9d6ccfea89ae99b747f70ece71185868f189d0f9 (patch) | |
tree | 30590080c8c664a3b263a12055bfeb1bc9381091 /tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml | |
parent | bb3ae9779730b6d4a0442ea5553b0dfab1a3da2b (diff) | |
download | Qt-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/data/flickable04.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml b/tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml index aa156ed..a840a01 100644 --- a/tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml +++ b/tests/auto/declarative/qdeclarativeflickable/data/flickable04.qml @@ -1,6 +1,12 @@ import Qt 4.7 Flickable { + property bool ok: false + function check() { + if (column.parent == contentItem) + ok = true; + } + width: 100; height: 100 contentWidth: column.width; contentHeight: column.height pressDelay: 200; boundsBehavior: Flickable.StopAtBounds; interactive: false |