aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgvisualitemmodel_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-09-01 15:24:34 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-21 08:23:52 +0200
commit51102228258ed107a255b79606ef855bfa0e460d (patch)
treef34134b772ba45e229cd264a11dba81c0ed77155 /src/declarative/items/qsgvisualitemmodel_p.h
parentce7b66871ce342b4cc62969ec0a3a9d90cee49e9 (diff)
Use QDeclarativeChangeSet to communicate changes to views.
Allows QSGVisualDataModel to send multiple changes at a time. Changes sets with multiple changes will be generated by VisualDataModels with items that have been re-ordered or filtered. Task-number: QTBUG-20107 Change-Id: I28f2620431cc89c61e1061635ffb68dc5801675c Reviewed-on: http://codereview.qt-project.org/4034 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgvisualitemmodel_p.h')
-rw-r--r--src/declarative/items/qsgvisualitemmodel_p.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/declarative/items/qsgvisualitemmodel_p.h b/src/declarative/items/qsgvisualitemmodel_p.h
index 2eeff3c9c2..6e8606cc6b 100644
--- a/src/declarative/items/qsgvisualitemmodel_p.h
+++ b/src/declarative/items/qsgvisualitemmodel_p.h
@@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
class QSGItem;
+class QDeclarativeChangeSet;
class Q_DECLARATIVE_EXPORT QSGVisualModel : public QObject
{
@@ -79,11 +80,7 @@ public:
Q_SIGNALS:
void countChanged();
- void itemsInserted(int index, int count);
- void itemsRemoved(int index, int count);
- void itemsMoved(int from, int to, int count);
- void itemsChanged(int index, int count);
- void modelReset();
+ void modelUpdated(const QDeclarativeChangeSet &changeSet, bool reset);
void createdItem(int index, QSGItem *item);
void destroyingItem(QSGItem *item);