QmlProjectManager: fix build

Change-Id: Ia1749477791194083fde471cf291177b65955fdc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2025-02-17 19:52:28 +01:00
parent 9e6a2cc2da
commit d5540a3353
4 changed files with 4 additions and 4 deletions

View File

@@ -1884,7 +1884,7 @@ FilePath getImported3dDefaultDirectory()
{
return Utils::FilePath::fromString(getAssetDefaultDirectory(
"3d",
QmlDesignerPlugin::instance()->documentManager().currentProjectDirPath().toString()));
QmlDesignerPlugin::instance()->documentManager().currentProjectDirPath().toUrlishString()));
}
void jumpToCode(const ModelNode &modelNode)

View File

@@ -116,7 +116,7 @@ WidgetInfo ContentLibraryView::widgetInfo()
QStringList paths;
for (const AssetPath &depAsset : std::as_const(depAssets)) {
QString path = depAsset.absFilPath().toString();
QString path = depAsset.absFilPath().toUrlishString();
if (Asset(path).isValidTextureSource())
paths.append(path);

View File

@@ -164,7 +164,7 @@ DVConnector::DVConnector(QObject *parent)
[this](const std::optional<Utils::FilePath> &resourcePath) {
emit projectIsUploading();
QString projectName = ProjectExplorer::ProjectManager::startupProject()->displayName();
uploadProject(projectName, resourcePath->toString());
uploadProject(projectName, resourcePath->toUrlishString());
});
connect(&m_resourceGenerator,

View File

@@ -111,7 +111,7 @@ void ResourceGenerator::generateMenuEntry(QObject *parent)
if (!success) {
Core::AsynchronousMessageBox::critical(
Tr::tr("Error"),
Tr::tr("Failed to generate QRC resource file\n %1").arg(qrcFilePath.toString()));
Tr::tr("Failed to generate QRC resource file\n %1").arg(qrcFilePath.toUserOutput()));
return;
}