8 Commits

Author SHA1 Message Date
Alex Jbanca
e7a1f5e831 feat(ProfileShowcase): Sync dirty state with the source model
Whenever the source model becomes identical to the showcase dirty model, the dirty flag is removed
2024-03-11 20:58:55 +02:00
Alex Jbanca
204bfb30b6 feat(WritableProxyModel): Add syncedRemoval flag to allow source to remove edited rows 2024-03-11 20:58:55 +02:00
Michał Cieślak
00af1d0e90 StatusQ(WritableProxyModel): Handling of layoutChanged/rowsMoved from source models fixed
Closes: #13601
2024-03-01 15:47:41 +02:00
Alex Jbanca
74bcdbe2c3 fix(WritableProxyModel): Insert in a single step to avoid providing undefined roles to ListViews 2024-02-07 19:54:47 +02:00
Alex Jbanca
9d4bc9466e chore(WritableProxyModel): Adding possibility to get the model changes 2024-02-07 19:54:47 +02:00
Alex Jbanca
9410de4286 fix(StatusQ): Fixing crash when the source model is a nim model
Nim models are crashing when calling `itemData`. A workaround for this is to re-implement the `itemData` calls in the writableModel.
2024-01-17 10:14:56 +02:00
Alex Jbanca
56f194c96c fix: Updates based on comments 2024-01-09 20:20:04 +02:00
Alex Jbanca
6da897e733 StatusQ: Adding WritableProxyModel
WritableProxyModel is a QAbstractProxyModel that allows you to modify the data without modifying the source model.
It is useful for implementing a "dirty" state for a model, where you can modify the data and then commit the changes
to the source model.

Supported features (reimplemented):
- setData
- setItemData
- removeRows
- insertRows
- moveRows (TODO)
- toVariantMap
- to be continued...
2024-01-09 20:20:04 +02:00