Details
-
Type:
Suggestion
-
Status: Closed
-
Priority:
P4: Low
-
Resolution: Done
-
Affects Version/s: 6.0
-
Fix Version/s: 6.0
-
Component/s: Core: Item Models
-
Labels:None
-
Commits:Ide0b5bb6358439fc42c474df8b044fbace6def8d If980fcfc36f723128bc56ec4587c5c3a338dbbcc
Description
Now that QTBUG-45114 has been closed and the behaviour of setItemData is set in stone, it's clear QAbstractItemModel is lacking an interface to clear all the data from a single index.
I'm proposing to add a virtual bool clearData(const QModelIndex&) method to QAbstractItemModel so that the functionality can be implemented by the subclasses.
Attachments
For Gerrit Dashboard: QTBUG-69616 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
235290,6 | Add a method to clear the data to QStandardItemModel | dev | qt/qtbase | Status: MERGED | +2 | 0 |
235291,1 | Add a method to clear the data to QStandardItemModel | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
237673,4 | Implement clearItemData in common models | dev | qt/qtbase | Status: MERGED | +2 | 0 |