magpie/qml/Application/Root.qml

31 lines
549 B
QML
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
2024-01-17 21:57:34 +00:00
import magpie.Forms as Forms
Item {
StackView {
id: stack
initialItem: main
anchors.fill: parent
}
Component {
id: main
Main {
2024-01-17 21:57:34 +00:00
onAddAsset: stack.push(addAssetForm);
}
}
2024-01-17 21:57:34 +00:00
Component {
id: addAssetForm
Forms.AddAsset {
onCancel: stack.pop()
onSuccess: stack.pop()
}
}
}