Comment 4 for bug 1380467

Revision history for this message
-MK- (mk42) wrote :

The libraryFeature has a signal trackSelected that could be used.

The TreeItem is aware of it's feature, so we could use

TreeItemModel::data for role = QBackgroundRole
to ask for the items 'highlightState' which would itself ask his feature if it should highlight. But the problem is, if I return Qt::red for role == QBackgroundRole, nothing happens. So the Background color isn't respected. I need another way to highlight those Items