Artemis 4 RC1
This commit is contained in:
60
ui/Downloader.qml
Normal file
60
ui/Downloader.qml
Normal file
@@ -0,0 +1,60 @@
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Controls.Material
|
||||
import QtQuick.Layouts
|
||||
|
||||
Window {
|
||||
id: windowDownloader
|
||||
|
||||
width: 400
|
||||
height: 130
|
||||
|
||||
maximumHeight: height
|
||||
maximumWidth: width
|
||||
|
||||
minimumHeight: height
|
||||
minimumWidth: width
|
||||
|
||||
modality: Qt.ApplicationModal
|
||||
flags: Qt.Dialog
|
||||
|
||||
title: qsTr("Artemis - Downloader")
|
||||
|
||||
signal onAbort()
|
||||
|
||||
Page {
|
||||
id: page
|
||||
anchors.fill: parent
|
||||
|
||||
ColumnLayout {
|
||||
id: columnLayout
|
||||
anchors.fill: parent
|
||||
|
||||
Label {
|
||||
text: qsTr("Downloading in progress...")
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
}
|
||||
|
||||
ProgressBar {
|
||||
objectName: "progressBar"
|
||||
Layout.rightMargin: 20
|
||||
Layout.leftMargin: 20
|
||||
Layout.fillWidth: true
|
||||
value: 0
|
||||
}
|
||||
|
||||
Label {
|
||||
objectName: "labelProgress"
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Abort")
|
||||
icon.source: "qrc:/images/icons/abort.svg"
|
||||
display: AbstractButton.TextBesideIcon
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||
onClicked: { onAbort() }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user