|
|
|
@ -267,6 +267,11 @@ QImage* UBLibraryController::thumbnailForFile(UBLibElement* pElement) |
|
|
|
|
QImage* image = new QImage(UBToolsManager::manager()->iconFromToolId(pElement->path().toString())); |
|
|
|
|
return image; |
|
|
|
|
} |
|
|
|
|
if (pElement->type() == eUBLibElementType_InteractiveItem){ |
|
|
|
|
QImage* image = new QImage(UBAbstractWidget::iconFilePath(pElement->path())); |
|
|
|
|
return image; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString thumbnailPath = UBFileSystemUtils::thumbnailPath(pElement->path().toLocalFile()); |
|
|
|
|
|
|
|
|
|
if (!thumbnailPath.length()) |
|
|
|
|