diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-08-01 22:53:17 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-08-02 15:53:58 +0000 |
commit | fe1a259be66835bc937890f3ed62bb2e8496d0f1 (patch) | |
tree | 12453b09306764e679cb45af9de417c38101f572 /src/quick/items/qquicktableview_p_p.h | |
parent | e997cd013a665505bd2d33a3e4b76e27752bcb39 (diff) |
QQmlTableInstanceModel: handle model data changes more gracefully
Equal to QQmlDelegateModel, we need to listen for changes done to
existing model items, and notify existing delegate items about it.
Otherwise, they will not stay in sync with the model.
By accident, this sort of worked in QQuickTableView already, since
it would rebuild the whole table for every model update. This
is really slow, and completely unnecessary.
Change-Id: I10750ff387f8b455d0f27c50a17926d9beb6dd03
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/items/qquicktableview_p_p.h')
-rw-r--r-- | src/quick/items/qquicktableview_p_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/items/qquicktableview_p_p.h b/src/quick/items/qquicktableview_p_p.h index 7e8561850a..b61093e55d 100644 --- a/src/quick/items/qquicktableview_p_p.h +++ b/src/quick/items/qquicktableview_p_p.h @@ -300,7 +300,6 @@ public: void connectToModel(); void disconnectFromModel(); - void dataChangedCallback(const QModelIndex &begin, const QModelIndex &end, const QVector<int> &roles); void rowsMovedCallback(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row); void columnsMovedCallback(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int column); void rowsInsertedCallback(const QModelIndex &parent, int begin, int end); |