Currently the thumbnails are currently created in an internal function in QmitkNodeSelectionButton.cpp. That leads to unnecessary dependencies of QmitkNodeSelectionButton.cpp (e.g. to MultiLabel).
It would be cleaner to do the following:
- add a virtual GenerateThumbnail method to QmitkNodeDescriptor
- Base implementation should return for images the image thumbnails and for everything else the icon (as it is done already in the current code)
- Add dedicated descriptor for MultiLabel that implements its own code (using the segmentation part of the current implementation)
- Remove the multilabel include form QmitkNodeSelectionButton.cpp
- Remove the MitkMultiLabel module dependency from MitkQwidgets