2020-09-28 14:33:37 -04:00
|
|
|
import QtQuick 2.1
|
|
|
|
import QtQuick.Controls 1.0
|
|
|
|
import QtQuick.Controls.Styles 1.0
|
|
|
|
import QtWebEngine 1.9
|
|
|
|
import QtQuick.Layouts 1.0
|
2020-10-22 16:33:30 -04:00
|
|
|
import "../../../shared"
|
|
|
|
import "../../../shared/status"
|
2021-09-28 18:04:06 +03:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-09-28 14:33:37 -04:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: downloadView
|
2020-10-22 16:33:30 -04:00
|
|
|
color: Style.current.background
|
2020-09-28 14:33:37 -04:00
|
|
|
|
|
|
|
ListView {
|
|
|
|
id: listView
|
|
|
|
anchors {
|
2020-10-22 16:33:30 -04:00
|
|
|
topMargin: Style.current.bigPadding
|
2020-09-28 14:33:37 -04:00
|
|
|
top: parent.top
|
|
|
|
bottom: parent.bottom
|
2020-10-22 16:33:30 -04:00
|
|
|
bottomMargin: Style.current.bigPadding * 2
|
2020-09-28 14:33:37 -04:00
|
|
|
horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
2020-10-22 16:33:30 -04:00
|
|
|
width: 624
|
|
|
|
spacing: Style.current.padding
|
2020-09-28 14:33:37 -04:00
|
|
|
|
|
|
|
model: downloadModel
|
2020-11-20 14:45:41 +02:00
|
|
|
delegate: DownloadElement {
|
|
|
|
width: parent.width
|
2020-09-28 14:33:37 -04:00
|
|
|
}
|
2020-10-22 16:33:30 -04:00
|
|
|
}
|
2020-09-28 14:33:37 -04:00
|
|
|
|
2020-10-22 16:33:30 -04:00
|
|
|
Text {
|
|
|
|
visible: !listView.count
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.pixelSize: 15
|
2021-02-18 11:36:05 -05:00
|
|
|
//% "Downloaded files will appear here."
|
|
|
|
text: qsTrId("downloaded-files-will-appear-here-")
|
2020-10-22 16:33:30 -04:00
|
|
|
color: Style.current.secondaryText
|
|
|
|
}
|
2020-10-22 13:34:14 -04:00
|
|
|
}
|