forked from qt-creator/qt-creator
QmlProjectManager: fix build
Change-Id: Ia1749477791194083fde471cf291177b65955fdc Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -1884,7 +1884,7 @@ FilePath getImported3dDefaultDirectory()
|
|||||||
{
|
{
|
||||||
return Utils::FilePath::fromString(getAssetDefaultDirectory(
|
return Utils::FilePath::fromString(getAssetDefaultDirectory(
|
||||||
"3d",
|
"3d",
|
||||||
QmlDesignerPlugin::instance()->documentManager().currentProjectDirPath().toString()));
|
QmlDesignerPlugin::instance()->documentManager().currentProjectDirPath().toUrlishString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void jumpToCode(const ModelNode &modelNode)
|
void jumpToCode(const ModelNode &modelNode)
|
||||||
|
@@ -116,7 +116,7 @@ WidgetInfo ContentLibraryView::widgetInfo()
|
|||||||
QStringList paths;
|
QStringList paths;
|
||||||
|
|
||||||
for (const AssetPath &depAsset : std::as_const(depAssets)) {
|
for (const AssetPath &depAsset : std::as_const(depAssets)) {
|
||||||
QString path = depAsset.absFilPath().toString();
|
QString path = depAsset.absFilPath().toUrlishString();
|
||||||
|
|
||||||
if (Asset(path).isValidTextureSource())
|
if (Asset(path).isValidTextureSource())
|
||||||
paths.append(path);
|
paths.append(path);
|
||||||
|
@@ -164,7 +164,7 @@ DVConnector::DVConnector(QObject *parent)
|
|||||||
[this](const std::optional<Utils::FilePath> &resourcePath) {
|
[this](const std::optional<Utils::FilePath> &resourcePath) {
|
||||||
emit projectIsUploading();
|
emit projectIsUploading();
|
||||||
QString projectName = ProjectExplorer::ProjectManager::startupProject()->displayName();
|
QString projectName = ProjectExplorer::ProjectManager::startupProject()->displayName();
|
||||||
uploadProject(projectName, resourcePath->toString());
|
uploadProject(projectName, resourcePath->toUrlishString());
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(&m_resourceGenerator,
|
connect(&m_resourceGenerator,
|
||||||
|
@@ -111,7 +111,7 @@ void ResourceGenerator::generateMenuEntry(QObject *parent)
|
|||||||
if (!success) {
|
if (!success) {
|
||||||
Core::AsynchronousMessageBox::critical(
|
Core::AsynchronousMessageBox::critical(
|
||||||
Tr::tr("Error"),
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user