live-reload: allow specifying a component to load

This commit is contained in:
miruka
2019-08-31 20:17:54 -04:00
parent 11dbd1e457
commit a0509465e6
3 changed files with 13 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ ApplicationWindow {
id: uiLoader
anchors.fill: parent
scale: py.ready ? 1 : 0.5
source: py.ready ? "UI.qml" : ""
source: py.ready ? (Qt.application.arguments[1] || "UI.qml") : ""
Behavior on scale { HNumberAnimation { overshoot: 5; factor: 1.2 } }
}