diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-07-18 17:12:14 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-07-19 09:05:30 +0000 |
commit | b5d7be57ccb8ca60590ed30d04271e76acc84029 (patch) | |
tree | 2bea23bfdd86ba494f36aaa481cdbd14a0583d35 /tests/auto/quick/qquicktableview/data | |
parent | 379ba8640a9cf7e43e848eb07c11989f0f4f3ddd (diff) |
QQuickTableView: set delegate parent early-on
Set the parent before bindings are evaluated.
Change-Id: I370524fe32c66699bd73aafeac55c58667b4dff1
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/data')
-rw-r--r-- | tests/auto/quick/qquicktableview/data/plaintableview.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktableview/data/plaintableview.qml b/tests/auto/quick/qquicktableview/data/plaintableview.qml index a073941faa..36c28525d5 100644 --- a/tests/auto/quick/qquicktableview/data/plaintableview.qml +++ b/tests/auto/quick/qquicktableview/data/plaintableview.qml @@ -49,6 +49,7 @@ Item { property real delegateWidth: 100 property real delegateHeight: 50 property Component delegate: tableViewDelegate + property bool delegateParentSetBeforeCompleted: false TableView { id: tableView @@ -74,6 +75,10 @@ Item { anchors.centerIn: parent text: modelData } + + Component.onCompleted: { + delegateParentSetBeforeCompleted = parent != null; + } } } |