diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-08-03 12:11:38 +0300 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-08-12 08:27:53 +0000 |
commit | b57f743c469f16f0c9ad5a9f0182454b74deff97 (patch) | |
tree | 1ad1d6709e810cbb1357006ac0431a7b00292714 /doc | |
parent | 4e24ff2e68f942db1d8f90de43dae8db410e706b (diff) |
QStringListModel: fix dataChanged's roles parameter
In QStringListModel, the display and the edit roles are synonyms,
so when one is changed, the other changes with it. However, in
setData() we only emitted a vector with just the role that was
passed in by the user.
Fix by always passing both roles, regardless of which one was used
to set the data.
Change-Id: I498e7cb33796fae266901817b01ad85d861d4bb4
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions