Start: Refactor f3d to use worker threads
This commit is contained in:
committed by
Benjamin Nauck
parent
da35868b96
commit
42cd4d76f2
@@ -149,6 +149,8 @@ QPixmap FileCardDelegate::generateThumbnail(const QString& path) const
|
||||
auto thumbnailSize =
|
||||
static_cast<int>(_parameterGroup->GetInt("FileThumbnailIconsSize", 128)); // NOLINT
|
||||
if (path.endsWith(QLatin1String(".fcstd"), Qt::CaseSensitivity::CaseInsensitive)) {
|
||||
// This is a fallback, the model will have pulled the thumbnail out of the FCStd file if it
|
||||
// existed.
|
||||
QImageReader reader(QLatin1String(":/icons/freecad-doc.svg"));
|
||||
reader.setScaledSize({thumbnailSize, thumbnailSize});
|
||||
return QPixmap::fromImage(reader.read());
|
||||
|
||||
Reference in New Issue
Block a user