Merge branch 'master' of github.com:Sankore/Sankore-3.1

preferencesAboutTextFull
shibakaneki 14 years ago
commit 79c425b91c
  1. 13
      src/board/UBLibraryController.cpp

@ -263,10 +263,15 @@ QImage* UBLibraryController::createThumbnail(UBLibElement* pElement)
QImage* UBLibraryController::thumbnailForFile(UBLibElement* pElement) QImage* UBLibraryController::thumbnailForFile(UBLibElement* pElement)
{ {
if (pElement->path().toString().contains("uniboardTool://")){ if (pElement->path().toString().contains("uniboardTool://")){
QImage* image = new QImage(UBToolsManager::manager()->iconFromToolId(pElement->path().toString())); QImage* image = new QImage(UBToolsManager::manager()->iconFromToolId(pElement->path().toString()));
return image; return image;
} }
if (pElement->type() == eUBLibElementType_InteractiveItem){
QImage* image = new QImage(UBAbstractWidget::iconFilePath(pElement->path()));
return image;
}
QString thumbnailPath = UBFileSystemUtils::thumbnailPath(pElement->path().toLocalFile()); QString thumbnailPath = UBFileSystemUtils::thumbnailPath(pElement->path().toLocalFile());
if (!thumbnailPath.length()) if (!thumbnailPath.length())

Loading…
Cancel
Save