QtDeployer/source/QML/StartPage.qml

60 lines
1.1 KiB
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-06-24 19:30:56 +03:00
content: MainManager.qtDir();
2018-03-12 11:43:03 +03:30
}
PathChooser {
2018-08-16 19:20:04 +03:00
id: projectfile
title: qsTr("Project File")
isdir: false
2018-03-12 11:43:03 +03:30
}
2018-06-24 19:30:56 +03:00
PathChooser {
id: icon
title: qsTr("Project icon")
isdir: false
}
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-08-16 19:20:04 +03:00
enabled: qtdir.confirmed && projectfile.confirmed
2018-03-12 11:43:03 +03:30
onClicked: {
2018-08-16 19:20:04 +03:00
MainManager.prepare(qtdir.content, projectfile.content, icon.content)
2018-03-12 11:43:03 +03:30
2018-05-30 07:37:19 +03:00
prp.outdir = MainManager.outDir
2018-03-12 11:43:03 +03:30
swipeview.currentIndex = 1
}
}
}
}