aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitemview_p_p.h
diff options
context:
space:
mode:
authorMitch Curtis <[email protected]>2022-06-06 16:02:15 +0800
committerMitch Curtis <[email protected]>2022-06-10 10:32:34 +0800
commitdbd108a7997f129004bbed523db75d4aa9d0ab6c (patch)
tree399883edff051d79f928a038b681be5ebf761dd3 /src/quick/items/qquickitemview_p_p.h
parente58626a02b7431b06333429aae80c6d23f904ddc (diff)
Item views: fix error when accessing attached view from non-delegates
Ensure that the view is set on the relevant attached objects before QQmlComponent::completeCreate() is called, which would otherwise result in a TypeError because the view would be set too late. Fixes: QTBUG-104026 Task-number: QTBUG-98718 Pick-to: 6.2 6.3 6.4 Change-Id: Ic65370bd4534e7452f2377ab4d60a74badf02079 Reviewed-by: Richard Moe Gustavsen <[email protected]>
Diffstat (limited to 'src/quick/items/qquickitemview_p_p.h')
-rw-r--r--src/quick/items/qquickitemview_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemview_p_p.h b/src/quick/items/qquickitemview_p_p.h
index d3b12268aa..d48e4160ac 100644
--- a/src/quick/items/qquickitemview_p_p.h
+++ b/src/quick/items/qquickitemview_p_p.h
@@ -178,6 +178,7 @@ public:
QQuickItem *createHighlightItem() const;
QQuickItem *createComponentItem(QQmlComponent *component, qreal zValue, bool createDefault = false) const;
+ virtual void initializeComponentItem(QQuickItem *) const;
void updateCurrent(int modelIndex);
void updateTrackedItem();