diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-05-02 13:02:57 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-05-02 14:05:28 +0300 |
commit | dcb83cfdc0e6c8e92df0ca2aacfd34c0ca276e2e (patch) | |
tree | 2c344a1c9a5ec8c796a08024216d1dd4219cd2ab /src/datavisualization/data/baritemmodelhandler_p.h | |
parent | 13d1117087e66c77d2eea2f0a046fc556c19cb3c (diff) |
Optimize single item changes in bar/surface item models.
We are only able to optimize this in cases where rows and
columns of the model are directly mapped to rows and columns
of the data proxy. In other cases we do not know if the new
values of the changed data item in the model actually specify the
same row/column in our data proxy as the previous values.
Task-number: QTRD-2190
Change-Id: Ie014469ac894474900e5cfd6d91fd1a60353b1f7
Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
Diffstat (limited to 'src/datavisualization/data/baritemmodelhandler_p.h')
-rw-r--r-- | src/datavisualization/data/baritemmodelhandler_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datavisualization/data/baritemmodelhandler_p.h b/src/datavisualization/data/baritemmodelhandler_p.h index 7bf7b0a1..737e0055 100644 --- a/src/datavisualization/data/baritemmodelhandler_p.h +++ b/src/datavisualization/data/baritemmodelhandler_p.h @@ -41,12 +41,18 @@ public: BarItemModelHandler(QItemModelBarDataProxy *proxy, QObject *parent = 0); virtual ~BarItemModelHandler(); +public slots: + virtual void handleDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, + const QVector<int> &roles = QVector<int> ()); + protected: void virtual resolveModel(); QItemModelBarDataProxy *m_proxy; // Not owned QBarDataArray *m_proxyArray; // Not owned int m_columnCount; + int m_valueRole; + int m_rotationRole; }; QT_END_NAMESPACE_DATAVISUALIZATION |