Page MenuHomePhabricator

berryQtItemSelection does not set its QItemSelection member variable
Closed, WontfixPublic

Description

Actual behavior:
Creating a 'QtItemSelection' (note the 't' in QtItem) with a given 'QItemSelection' (no 't') as constructor parameter, the member variable 'm_QItemSelection' is not initialized. However, a getter 'GetQItemSelection' is provided.
This getter is also used in the 'SetSelection'-function of the 'QtSelectionProvider'-class.
With the current implementation the 'm_QItemSelection' always returns an empty selection and the 'SetSelection'-function does nothing (or rather deselects everything from the calling qSelectionModel).

Expected behavior:
Assigning the QItemSelection constructor parameter in the constructor body to the member variable will resolve the problem.

Event Timeline

kislinsk claimed this task.
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.