diff --git a/src/plugins/qmldesigner/components/componentcore/resourcegenerator.cpp b/src/plugins/qmldesigner/components/componentcore/resourcegenerator.cpp index d5fdeb0a913..1ab7768b15c 100644 --- a/src/plugins/qmldesigner/components/componentcore/resourcegenerator.cpp +++ b/src/plugins/qmldesigner/components/componentcore/resourcegenerator.cpp @@ -192,11 +192,11 @@ std::optional ResourceGenerator::createQrc(const QString &proje bool ResourceGenerator::createQrc(const Utils::FilePath &qrcFilePath) { - QFile qrcFile(qrcFilePath.toUrlishString()); + QFile qrcFile(qrcFilePath.toFSPathString()); if (!qrcFile.open(QIODeviceBase::WriteOnly | QIODevice::Truncate)) { Core::MessageManager::writeDisrupting( - Tr::tr("Failed to open file to write QRC XML: %1").arg(qrcFilePath.toString())); + Tr::tr("Failed to open file to write QRC XML: %1").arg(qrcFilePath.toUserOutput())); return false; } diff --git a/src/plugins/qmldesigner/components/devicesharing/devicemanager.cpp b/src/plugins/qmldesigner/components/devicesharing/devicemanager.cpp index 6fbb110c025..ad00a1dbc93 100644 --- a/src/plugins/qmldesigner/components/devicesharing/devicemanager.cpp +++ b/src/plugins/qmldesigner/components/devicesharing/devicemanager.cpp @@ -432,12 +432,12 @@ void DeviceManager::runProject(const QString &deviceId) void DeviceManager::projectPacked(const Utils::FilePath &filePath) { - qCDebug(deviceSharePluginLog) << "Project packed" << filePath.toString(); + qCDebug(deviceSharePluginLog) << "Project packed" << filePath.toUserOutput(); emit projectSendingProgress(m_currentDeviceId, 0); m_currentState = OpTypes::Sending; qCDebug(deviceSharePluginLog) << "Sending project file to device" << m_currentDeviceId; - QFile file(filePath.toString()); + QFile file(filePath.toFSPathString()); if (!file.open(QIODevice::ReadOnly)) { handleError(ErrTypes::ProjectSendingError, m_currentDeviceId, "Failed to open project file");