import QtQuick 2.4
import Ubuntu.Components 1.2
import Ubuntu.DownloadManager 0.1
import Ubuntu.Components.ListItems 1.0
Rectangle {
width: units.gu(40)
height: units.gu(25)
TextField {
id: text
placeholderText: "File URL to download..."
height: 50
anchors {
left: parent.left
right: button.left
rightMargin: units.gu(2)
}
}
Button {
id: button
text: "Download"
height: 50
anchors.right: parent.right
onClicked: {
single.download(text.text);
}
}
ProgressBar {
minimumValue: 0
maximumValue: 100
value: single.progress
anchors {
left: parent.left
right: parent.right
bottom: parent.bottom
}
SingleDownload {
id: single
}
}
}