QtDeployer/source/QML/StartPage.qml

56 lines
1004 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
import Qt.labs.settings 1.0
Page {
id: page
clip: true
2018-05-10 16:17:45 +03:00
header: Header {
message: qsTr("Qt Deployer")
}
2018-03-12 11:43:03 +03:30
ColumnLayout {
spacing: 15
anchors.margins: 15
anchors.fill: parent
PathChooser {
id: qtdir
2018-05-10 14:08:58 +03:00
title: qsTr("Qt Build Directory")
2018-03-12 11:43:03 +03:30
}
PathChooser {
id: projectdir
2018-05-10 14:08:58 +03:00
title: qsTr("Project Directory")
2018-03-12 11:43:03 +03:30
}
PathChooser {
id: outdir
2018-05-10 14:08:58 +03:00
title: qsTr("Final Output Directory")
2018-03-12 11:43:03 +03:30
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
Button {
2018-05-10 14:08:58 +03:00
text: qsTr("Next")
2018-03-12 11:43:03 +03:30
Material.background: buttonColor
Layout.alignment: Qt.AlignRight
2018-05-26 16:48:58 +03:00
enabled: qtdir.confirmed && projectdir.confirmed && outdir.confirmed
2018-03-12 11:43:03 +03:30
onClicked: {
2018-05-26 16:48:58 +03:00
MainManager.prepare(qtdir.content, projectdir.content, outdir.content)
2018-03-12 11:43:03 +03:30
prp.outdir = outdir.content
swipeview.currentIndex = 1
}
}
}
}