aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/qqmlobjectmodel_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2019-10-31 15:16:04 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2019-11-28 11:15:29 +0100
commitc83ab72c82f5257eb81b9c2fb1c70ca93e21401f (patch)
tree5d644e86f79bfae18270f0109dbe0ae62127029e /src/qmlmodels/qqmlobjectmodel_p.h
parent77a5b336fc7dbb16840e6b2ec86365c2f5e979c6 (diff)
QQmlInstanceModel::ReleaseFlags: add enum value 'Pooled'
Now that we're about to add support for delegate item recycling in ListView, we need to add an extra enum value to the ReleaseFlags. This will be needed later so that ListView can distinguish between items that are still referenced and visible in the viewport, and items that not referenced, but at the same time, still alive in the pool. Change-Id: I4a1110b6b43ba109ccd160d22010569dd5410829 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qmlmodels/qqmlobjectmodel_p.h')
-rw-r--r--src/qmlmodels/qqmlobjectmodel_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlmodels/qqmlobjectmodel_p.h b/src/qmlmodels/qqmlobjectmodel_p.h
index 0aa818d724..99a1fe2379 100644
--- a/src/qmlmodels/qqmlobjectmodel_p.h
+++ b/src/qmlmodels/qqmlobjectmodel_p.h
@@ -74,7 +74,7 @@ class Q_QMLMODELS_PRIVATE_EXPORT QQmlInstanceModel : public QObject
public:
virtual ~QQmlInstanceModel() {}
- enum ReleaseFlag { Referenced = 0x01, Destroyed = 0x02 };
+ enum ReleaseFlag { Referenced = 0x01, Destroyed = 0x02, Pooled = 0x04 };
Q_DECLARE_FLAGS(ReleaseFlags, ReleaseFlag)
virtual int count() const = 0;