Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.1, 5.5.0
-
None
-
1382374deaa4a854aeb542e6c8f7e1841f2abb10
Description
Documentation for QAbstractItemModel::setItemData() states:
Roles that are not in roles will not be modified.
However, QStandardItemModel's reimplementation uses QStandardItem::setItemData(), which replaces the existing values with the new values:
if (values!=newValues)
{ values=newValues; if (model) model->d_func()->itemChanged(q); }So the behaviour is inconsistent.
Attachments
Issue Links
- relates to
-
QTBUG-45114 Behaviour of QStandardItemModel::setItemData() is inconsistent with QAbstractItemModel::setItemData()
-
- Closed
-
For Gerrit Dashboard: QTBUG-10872 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
109157,15 | Correct QStandardItemModel::setItemData to follow QAbstractItemModel | dev | qt/qtbase | Status: MERGED | +2 | 0 |