1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00

Fix wizards paths and default code

This commit is contained in:
Elias Steurer 2022-11-05 14:35:39 +01:00
parent ce8ace41ea
commit b8e952b3e8
3 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,13 @@
import QtQuick
Item {
Rectangle {
id: root
color: "#333333"
Text {
id: name
text: qsTr("My Wallpaper 🚀")
anchors.centerIn: parent
color: "white"
}
}

View File

@ -2,4 +2,12 @@ import QtQuick
Item {
id: root
implicitWidth: 300
implicitHeight: 200
Text {
id: name
text: qsTr("My Widget 🚀")
anchors.centerIn: parent
}
}

View File

@ -60,7 +60,7 @@ void Wizards::createQMLWidget(const QString& title,
return;
}
if (!Util::writeFileFromQrc(":/qml/ScreenPlayApp/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;