Ubuntu Pastebin

Paste from jgm90 at Sun, 19 Apr 2015 18:58:15 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SingleDownload {
    id: single
    onFinished: {
        PopupUtils.close(dialogue)
    }
}
Component {
    id: dialog
    Dialog {
        id: dialogue
        title: "Downloading"
        ProgressBar {
            minimumValue: 0
            maximumValue: 100
            value: single.progress
        }
        Button {
            text: "Cancel"
            color: UbuntuColors.orange
            onClicked: {
                single.cancel()
                PopupUtils.close(dialogue)
            }
        }
    }
}
Download as text