mirror of
https://github.com/QuasarApp/QtDeployer.git
synced 2025-04-29 23:14:33 +00:00
70 lines
1.2 KiB
QML
70 lines
1.2 KiB
QML
|
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 {
|
||
|
text: "Qt Linux Deployer"
|
||
|
}
|
||
|
|
||
|
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
|
||
|
title: "Qt Build Directory"
|
||
|
}
|
||
|
|
||
|
PathChooser {
|
||
|
id: execpath
|
||
|
isdir: false
|
||
|
title: "Executable File Path"
|
||
|
}
|
||
|
|
||
|
PathChooser {
|
||
|
id: projectdir
|
||
|
title: "Project Directory"
|
||
|
}
|
||
|
|
||
|
PathChooser {
|
||
|
id: outdir
|
||
|
title: "Final Output Directory"
|
||
|
}
|
||
|
|
||
|
Item {
|
||
|
Layout.fillWidth: true
|
||
|
Layout.fillHeight: true
|
||
|
}
|
||
|
|
||
|
Button {
|
||
|
text: "Next"
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|