aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmltablemodel_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-02-21 17:35:39 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2019-02-22 13:13:28 +0000
commit22435f49499342ff102411c025efb8007dfa62a2 (patch)
tree51bbc0375849451355e8397a77752c95d83349ed /src/qml/types/qqmltablemodel_p.h
parent2d79c167e0e127e99a4b439dc3c8536770c110a9 (diff)
TableModel.roleDataProvider: replace row, column with index argument
QModelIndex has various advantages over separate int row and column in TableModel API; we intend to expose it via an invokable index() method and via a context property for delegates, and use it in the invokable data() function. So we should be consistent by using it in roleDataProvider too. This way the callback only requires 3 arguments instead of 4, and the first one is potentially extensible, just in case. Change-Id: I7b1bc9ea5adb64941979d83901b3566278357e98 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/types/qqmltablemodel_p.h')
0 files changed, 0 insertions, 0 deletions