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
|
|
|
|
|
|
|
|
header: TopBar {
|
2018-05-10 14:08:58 +03:00
|
|
|
text: qsTr("Qt Deployer")
|
2018-03-12 11:43:03 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
Settings {
|
|
|
|
property alias qtdir: qtdir.content
|
|
|
|
property alias outdir: outdir.content
|
|
|
|
property alias execpath: execpath.content
|
|
|
|
property alias projectdir: projectdir.content
|
|
|
|
}
|
|
|
|
|
|
|
|
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: execpath
|
|
|
|
isdir: false
|
2018-05-10 14:08:58 +03:00
|
|
|
title: qsTr("Executable File Path")
|
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
|
|
|
|
enabled: qtdir.confirmed && execpath.confirmed
|
|
|
|
&& projectdir.confirmed && outdir.confirmed
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
MainManager.prepare(qtdir.content, execpath.content,
|
|
|
|
projectdir.content, outdir.content)
|
|
|
|
|
|
|
|
prp.outdir = outdir.content
|
|
|
|
swipeview.currentIndex = 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|