From dc773094e6dc9b7db24a97887db457bf82c2927f Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Fri, 4 Nov 2022 16:31:04 +0100 Subject: [PATCH] Fix wizard paths --- ScreenPlay/src/wizards.cpp | 8 ++++---- ScreenPlayUtil/qml/LicenseSelector.qml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ScreenPlay/src/wizards.cpp b/ScreenPlay/src/wizards.cpp index dffff319..9206228c 100644 --- a/ScreenPlay/src/wizards.cpp +++ b/ScreenPlay/src/wizards.cpp @@ -60,7 +60,7 @@ void Wizards::createQMLWidget(const QString& title, return; } - if (!Util::writeFileFromQrc(":/qml/Create/WizardsFiles/QMLWidgetMain.qml", workingPath + "main.qml")) { + if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/QMLWidgetMain.qml", workingPath + "main.qml")) { qWarning() << "Could not write main.qml"; emit widgetCreationFinished(WizardResult::WriteProjectFileError); return; @@ -126,7 +126,7 @@ void Wizards::createHTMLWidget(const QString& title, return; } - if (!Util::writeFileFromQrc(":/qml/Create/WizardsFiles/HTMLWidgetMain.html", workingPath + "/index.html")) { + if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/HTMLWidgetMain.html", workingPath + "/index.html")) { qWarning() << "Could not write HTMLWidgetMain.html"; emit widgetCreationFinished(WizardResult::WriteProjectFileError); return; @@ -194,7 +194,7 @@ void Wizards::createHTMLWallpaper( return; } - if (!Util::writeFileFromQrc(":/qml/Create/WizardsFiles/HTMLWallpaperMain.html", workingPath + "/index.html")) { + if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/HTMLWallpaperMain.html", workingPath + "/index.html")) { qWarning() << "Could not write HTMLWallpaperMain.html"; emit widgetCreationFinished(WizardResult::WriteProjectFileError); return; @@ -273,7 +273,7 @@ void Wizards::createQMLWallpaper( return; } - if (!Util::writeFileFromQrc(":/qml/Create/WizardsFiles/QMLWallpaperMain.qml", workingPath + "/main.qml")) { + if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/qml/Create/WizardsFiles/QMLWallpaperMain.qml", workingPath + "/main.qml")) { qWarning() << "Could not write main.qml"; return; } diff --git a/ScreenPlayUtil/qml/LicenseSelector.qml b/ScreenPlayUtil/qml/LicenseSelector.qml index 2af58070..fd7f6092 100644 --- a/ScreenPlayUtil/qml/LicenseSelector.qml +++ b/ScreenPlayUtil/qml/LicenseSelector.qml @@ -77,7 +77,7 @@ ColumnLayout { ListElement { name: "All rights reserved" description: qsTr("You do not share any rights and nobody is allowed to use or remix it (Not recommended). Can also used to credit work others.") - tldrlegal: "License_All_Rights_Reserved_1.0.txt" + licenseFile: "License_All_Rights_Reserved_1.0.txt" } }