mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 10:42:29 +01:00
Fix wizards paths and default code
This commit is contained in:
parent
ce8ace41ea
commit
b8e952b3e8
@ -1,5 +1,13 @@
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
Rectangle {
|
||||
id: root
|
||||
color: "#333333"
|
||||
|
||||
Text {
|
||||
id: name
|
||||
text: qsTr("My Wallpaper 🚀")
|
||||
anchors.centerIn: parent
|
||||
color: "white"
|
||||
}
|
||||
}
|
||||
|
@ -2,4 +2,12 @@ import QtQuick
|
||||
|
||||
Item {
|
||||
id: root
|
||||
implicitWidth: 300
|
||||
implicitHeight: 200
|
||||
|
||||
Text {
|
||||
id: name
|
||||
text: qsTr("My Widget 🚀")
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user