diff options
author | Ulf Hermann <[email protected]> | 2025-03-04 15:43:54 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2025-03-18 11:21:52 +0100 |
commit | 3bc0a11401c12f87b512f3715aed11fcde2e25ee (patch) | |
tree | 3a424b80f059b6cf45e4a689c6773b363189cc74 /src/quick/items/qquickitemview_p_p.h | |
parent | 390c78b394b30d1abdc6268b21dd2a583472bd60 (diff) |
Expose delegateModelAccess from QQuickItemView
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] ListView and GridView now have 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: I72e27fd737ef2ef25da067e4192b58aad9084143
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquickitemview_p_p.h b/src/quick/items/qquickitemview_p_p.h index 03fa783c3d..3559f0bc5c 100644 --- a/src/quick/items/qquickitemview_p_p.h +++ b/src/quick/items/qquickitemview_p_p.h @@ -169,6 +169,7 @@ public: qreal calculatedMaxExtent() const; void applyDelegateChange(); + void applyDelegateModelAccessChange(); void applyPendingChanges(); bool applyModelChanges(ChangeResult *insertionResult, ChangeResult *removalResult); @@ -311,6 +312,7 @@ public: bool delegateValidated : 1; bool isClearing : 1; bool explicitDelegate: 1; + bool explicitDelegateModelAccess: 1; protected: virtual Qt::Orientation layoutOrientation() const = 0; |