--- a/src/primitives.cpp Sat Mar 17 23:59:15 2018 +0200 +++ b/src/primitives.cpp Sun Mar 18 12:00:39 2018 +0200 @@ -551,8 +551,16 @@ { case Qt::DisplayRole: return format("%1 - %2", primitive.name, primitive.title); + case Qt::DecorationRole: return MainWindow::getIcon("subfilereference"); + + case PrimitiveNameRole: + return primitive.name; + + case PrimitiveDescriptionRole: + return primitive.title; + default: return {}; } @@ -566,8 +574,10 @@ { case Qt::DisplayRole: return category->name(); + case Qt::DecorationRole: return MainWindow::getIcon("folder"); + default: return {}; }