aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitemview_p_p.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2025-03-10 13:12:15 +0100
committerUlf Hermann <[email protected]>2025-03-18 11:22:02 +0100
commit1cf72c90de4b13302a0db9ac3f177d5a2662b9ff (patch)
tree02e4ce96b61369a2e1704374bd48caa7c08df694 /src/quick/items/qquickitemview_p_p.h
parent3bc0a11401c12f87b512f3715aed11fcde2e25ee (diff)
Expose delegateModelAccess from QQuickRepeater
It mirrors the same property from any internal delegate model. If the internal model is not a delegate model, the value is "Qt5ReadWrite". [ChangeLog][QtQuick] Repeater now has a new property delegateModelAccess. Setting it to DelegateModel.ReadWrite allows you to write values into the model via required properties just as you could with context properties. Task-number: QTBUG-132420 Change-Id: I8718138187a24d75ea9b3bc2c35cd25ea1399207 Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/quick/items/qquickitemview_p_p.h')
-rw-r--r--src/quick/items/qquickitemview_p_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/items/qquickitemview_p_p.h b/src/quick/items/qquickitemview_p_p.h
index 3559f0bc5c..9aca664ec6 100644
--- a/src/quick/items/qquickitemview_p_p.h
+++ b/src/quick/items/qquickitemview_p_p.h
@@ -169,7 +169,10 @@ public:
qreal calculatedMaxExtent() const;
void applyDelegateChange();
- void applyDelegateModelAccessChange();
+ void applyDelegateModelAccessChange()
+ {
+ QQmlDelegateModel::applyDelegateModelAccessChangeOnView(q_func(), this);
+ }
void applyPendingChanges();
bool applyModelChanges(ChangeResult *insertionResult, ChangeResult *removalResult);