Start: Refactor f3d to use worker threads

This commit is contained in:
Chris Hennes
2025-02-08 14:14:56 -06:00
committed by Benjamin Nauck
parent da35868b96
commit 42cd4d76f2
17 changed files with 727 additions and 201 deletions

View File

@@ -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());