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:
parent
ce8ace41ea
commit
b8e952b3e8
@ -1,5 +1,13 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
Item {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
color: "#333333"
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: name
|
||||||
|
text: qsTr("My Wallpaper 🚀")
|
||||||
|
anchors.centerIn: parent
|
||||||
|
color: "white"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,12 @@ import QtQuick
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
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;
|
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";
|
qWarning() << "Could not write main.qml";
|
||||||
emit widgetCreationFinished(WizardResult::WriteProjectFileError);
|
emit widgetCreationFinished(WizardResult::WriteProjectFileError);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user