diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-03 05:31:58 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-08-03 05:31:58 (GMT) |
commit | b7702b2dcbc36f81759dea0ad74fb19e97b2358f (patch) | |
tree | 84aad593a6beb229fc4ef106484557e434f81047 /src/declarative/util/qdeclarativeopenmetaobject_p.h | |
parent | cf5d8a23241c31d8a49c78ffb1e3f6ae288eb585 (diff) | |
download | Qt-b7702b2dcbc36f81759dea0ad74fb19e97b2358f.zip Qt-b7702b2dcbc36f81759dea0ad74fb19e97b2358f.tar.gz Qt-b7702b2dcbc36f81759dea0ad74fb19e97b2358f.tar.bz2 |
Ensure dataChanged doesn't force request for unwanted data in QML views.
If a model emits dataChanged() every role was be updated, rather than
just the roles required. Now only roles which have been used are updated.
Task-number: QTBUG-12598
Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative/util/qdeclarativeopenmetaobject_p.h')
-rw-r--r-- | src/declarative/util/qdeclarativeopenmetaobject_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeopenmetaobject_p.h b/src/declarative/util/qdeclarativeopenmetaobject_p.h index 9bb4c34..c18fa3d 100644 --- a/src/declarative/util/qdeclarativeopenmetaobject_p.h +++ b/src/declarative/util/qdeclarativeopenmetaobject_p.h @@ -91,6 +91,7 @@ public: void setValue(int, const QVariant &); QVariant &operator[](const QByteArray &); QVariant &operator[](int); + bool hasValue(int) const; int count() const; QByteArray name(int) const; |