|
|
@ -502,12 +502,13 @@ QVariant UBDocumentTreeModel::data(const QModelIndex &index, int role) const |
|
|
|
} else if (isConstant(index)) { |
|
|
|
} else if (isConstant(index)) { |
|
|
|
return QIcon(":images/libpalette/ApplicationsCategory.svg"); |
|
|
|
return QIcon(":images/libpalette/ApplicationsCategory.svg"); |
|
|
|
} |
|
|
|
} |
|
|
|
// switch (static_cast<int>(dataNode->nodeType())) {
|
|
|
|
switch (static_cast<int>(dataNode->nodeType())) |
|
|
|
// case UBDocumentTreeNode::Catalog :
|
|
|
|
{ |
|
|
|
// return QIcon(":images/folder.png");
|
|
|
|
case UBDocumentTreeNode::Catalog : |
|
|
|
|
|
|
|
return QIcon(":images/folder.png"); |
|
|
|
// case UBDocumentTreeNode::Document :
|
|
|
|
// case UBDocumentTreeNode::Document :
|
|
|
|
// return QIcon(":images/toolbar/board.png");
|
|
|
|
// return QIcon(":images/toolbar/board.png");
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case (Qt::FontRole) : |
|
|
|
case (Qt::FontRole) : |
|
|
|