aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2023-11-05 15:43:11 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-11-06 18:42:55 +0000
commit6c6cec5e8de2aa3ba4d7c820f33d3c93aefa969f (patch)
tree951769046e0e01ab62d787fec09d3d613890baad
parentf295f53863d3a40bfa7d89bef4a09598c9675653 (diff)
Fix export functionality in the custom material editor
The export functionality didn't work on windows as the path for exporting the component was not resolved correctly. Fixes: QTBUG-118806 Pick-to: 6.5 Change-Id: I050c6dad23e4bd64fdba03814d961f6e49a683a7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 1e209e583c87324ee87be4821991b43c6836d893) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tools/materialeditor/materialadapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/materialeditor/materialadapter.cpp b/tools/materialeditor/materialadapter.cpp
index 145d39cc..525a675d 100644
--- a/tools/materialeditor/materialadapter.cpp
+++ b/tools/materialeditor/materialadapter.cpp
@@ -398,7 +398,7 @@ bool MaterialAdapter::loadMaterial(const QUrl &materialFile)
bool MaterialAdapter::exportQmlComponent(const QUrl &componentFile, const QString &vertName, const QString &fragName)
{
- QFileInfo fi(componentFile.path());
+ QFileInfo fi(componentFile.toLocalFile());
auto filename = fi.fileName();
if (filename.isEmpty())
return false;