QmlDesigner: Fix project build

The code has to be fixed in the future. But I am unsure if it even
needed for the project storage.

Change-Id: Iabff94678df56b3c2ac58959e5dead0fea92e86e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2024-09-09 12:40:36 +02:00
committed by Tim Jenssen
parent a949d50f33
commit 04155ac5a1

View File

@@ -620,7 +620,12 @@ QSet<AssetPath> BundleHelper::getComponentDependencies(const Utils::FilePath &fi
depList.insert({mainCompDir, filePath.relativePathFrom(mainCompDir).toFSPathString()}); depList.insert({mainCompDir, filePath.relativePathFrom(mainCompDir).toFSPathString()});
#ifdef QDS_USE_PROJECTSTORAGE
// TODO add model with ProjectStorageDependencies
ModelPointer model;
#else
ModelPointer model = Model::create("Item"); ModelPointer model = Model::create("Item");
#endif
Utils::FileReader reader; Utils::FileReader reader;
QTC_ASSERT(reader.fetch(filePath), return {}); QTC_ASSERT(reader.fetch(filePath), return {});