serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibGUI: Model and view classes should support detailed index invalidation

Open awesomekling opened this issue 5 years ago • 1 comments

To support persistent indexes (useful for cursors and selection) and generally just not invalidating views whenever the data changes, we should support detailed index invalidation in our model/view classes.

Since the LibGUI classes are heavily inspired by Qt's classes, a good starting point would be here: https://doc.qt.io/qt-5/qabstractitemmodel.html

Basically, we want the model to notify all attached views when indexes are being inserted/removed/moved and teach our views to react accordingly. Once this works, we no longer need to invalidate indexes after any model update.

awesomekling avatar Jan 04 '21 19:01 awesomekling

Related work:

#7687

#9269

ADKaster avatar Feb 01 '24 09:02 ADKaster