mirror of
https://github.com/QuasarApp/QtDeployer.git
synced 2025-05-03 08:39:33 +00:00
56 lines
1004 B
QML
Executable File
56 lines
1004 B
QML
Executable File
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: Header {
|
|
message: qsTr("Qt Deployer")
|
|
}
|
|
|
|
|
|
ColumnLayout {
|
|
spacing: 15
|
|
anchors.margins: 15
|
|
anchors.fill: parent
|
|
|
|
PathChooser {
|
|
id: qtdir
|
|
title: qsTr("Qt Build Directory")
|
|
}
|
|
|
|
PathChooser {
|
|
id: projectdir
|
|
title: qsTr("Project Directory")
|
|
}
|
|
|
|
PathChooser {
|
|
id: outdir
|
|
title: qsTr("Final Output Directory")
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
}
|
|
|
|
Button {
|
|
text: qsTr("Next")
|
|
Material.background: buttonColor
|
|
Layout.alignment: Qt.AlignRight
|
|
enabled: qtdir.confirmed && projectdir.confirmed && outdir.confirmed
|
|
|
|
onClicked: {
|
|
MainManager.prepare(qtdir.content, projectdir.content, outdir.content)
|
|
|
|
prp.outdir = outdir.content
|
|
swipeview.currentIndex = 1
|
|
}
|
|
}
|
|
}
|
|
}
|