QtDeployer/source/QML/ProcessPage.qml

41 lines
784 B
QML
Raw Normal View History

2018-03-12 11:43:03 +03:30
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
Page {
id: page
clip: true
property bool erase
property int state: MainManager.state
header: TopBar {
2018-05-10 14:08:58 +03:00
text: qsTr("Qt Deployer")
2018-03-12 11:43:03 +03:30
ToolButton {
text: "➔"
rotation: 180
font.pointSize: largeFont
anchors.right: parent.right
onClicked: swipeview.currentIndex = 0
anchors.verticalCenter: parent.verticalCenter
}
}
Button {
width: 200
padding: 18
anchors.centerIn: parent
Material.background: buttonColor
2018-05-10 14:08:58 +03:00
text: page.state == 0 ? "Go!":(page.state == 1 ? qsTr("Wait!"):qsTr("Done!"))
2018-03-12 11:43:03 +03:30
onClicked: {
if (page.state == 0)
MainManager.start(erase)
else if (page.state == 2)
swipeview.currentIndex = 3
}
}
}