When attempting to use QmitkDataStorageListModel (in Modules/QtWidgets) I remarked at least two bugs that rendered the class unusable for me:
- handling of node observer tags was implemented in only half of the methods. When changing the node filtering predicate, things would crash because list indices were not well managed.
- the class would hold an ITK SmartPointer and "delete" it in its destructor. This, too, does not end well. It crashes.
Since the idea of the class is still useful for certain use cases, I fixed those issues and tried to unify the structure of the class a bit.
Since nothing in MITK is using this class, not even a test, I'll wait for some feedback before integration. Also, I'd like to add at least a minimal unit test. If somebody volunteers on this task, I'll easily let go.