aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4lookup.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-02-13 18:19:08 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-02-28 08:11:19 +0000
commit368a1d918a49d01a380131205da2f205fb267a26 (patch)
treea2e7784ba42736bb36d33e54f07cc2ac476c0e7a /src/qml/jsruntime/qv4lookup.cpp
parentb4ee855eb10cf9bfa44ce8e5de8f9ee6c5917764 (diff)
TableModel: support built-in QML model roles
For the display role, we'll return the first role in that column if it wasn't explicitly specified. For every other role, we can just return an invalid QVariant. As usual, roleDataProvider can be used for any data that is missing. Before this patch, the extra roles were missing from roleNames, so they couldn't be used in delegates. Change-Id: I53ac5b75526bcddec44baf834f6a093115a70993 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup.cpp')
0 files changed, 0 insertions, 0 deletions