Page MenuHomePhabricator

Filtering nodes in data manager using QSortFilterProxyModel
Closed, ResolvedPublic

Description

It would make sense to filter the nodes shown in data manager by actually filtering the model using QSortFilterProxyModel instead of modifying the model itself. This would also add more flexibility in filtering as well as fix some problems in layer assignment for nodes that are filtered out.

Event Timeline

User muellerm has pushed new remote branch:

bug-18025-Filtering-nodes-in-data-manager-using-QSortFilterProxyModel-revised

User muellerm has pushed new remote branch:

bug-18025-Filtering-nodes-in-data-manager-using-QSortFilterProxyModel-on-master

[a3b0d7]: Merge branch 'bug-18025-Filtering-nodes-in-data-manager-using-QSortFil

Merged commits:

2014-08-28 14:45:21 Michael Mueller [2fd74f]
incorporated QmitkDataStorageFilterProxyModelD


2014-08-28 14:35:34 Michael Mueller [dd37c7]
added filter model but inactive in datamanager view


2014-08-28 14:28:22 Michael Mueller [ac0434]
removed usage of Predicates in TreeModel (i.e. uses all nodes in DS)


2014-08-28 14:21:41 Michael Mueller [c9776a]
added FilterProxyModel
Fixed selection index

[7f6d8a]: Merge branch 'bug-18025-Filtering-nodes-in-data-manager-using-QSortFil

Merged commits:

2014-08-28 21:42:35 Sascha Zelzer [7b37f1]
COMP: Removed C++11 keyword

User hering has pushed new remote branch:

bug-18025-Fix-Invalidation-FilterModel

[98076e]: Merge branch 'bug-18025-Fix-Invalidation-FilterModel'

Merged commits:

2014-09-23 16:12:04 Jan Hering [f5963d]
Invalidate FilterModel correctly

  • change as proposed by R. Khlebnikov

What is the status of this bug?

still open ... rotislav posted another issue on Sep, 02.
i will have a look at it and post the changes here

Hi, the bug with deleting/reordering nodes was fixed and integrated into master - see https://github.com/MITK/MITK/blob/master/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp - lines 901-906.

yeah i saw it just at that moment, sorry, i am not always up to date