summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorStephen Kelly <ske@ableton.com>2015-02-25 12:58:23 +0100
committerStephen Kelly <steveire@gmail.com>2015-03-04 22:38:55 +0000
commit196fde2ac780774b0e003dbc02bad23e1afc74ce (patch)
treea651d48a0d0ff9be6929a98f254e8587ce45a6b5 /src/corelib/global
parent38e64664a226e406a83fd0250584d5c57719a3a7 (diff)
Make the QItemSelectionModel::selection a property.
QML code like this should be possible: Text { text: selModel.selection.contains(modelIndex) ? "blue" : "yellow" } If the selection is just a Q_INVOKABLE method, then all consumers need to set up Connections { target: selModel selectionChanged: foo() } That is obviously not the API we want (made more clear by the fact that the signal is already perfectly named) because it is not declarative but it can be. So, make it declarative by making selection a property. Change-Id: Id1a05ae9b91e45e6d462bea4272b8740571e9fc3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/corelib/global')
0 files changed, 0 insertions, 0 deletions