Ubuntu Pastebin

Paste from sil at Sun, 12 Jul 2015 19:41:08 +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
27
28
29
30
31
32
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Content 0.1

MainView {
    objectName: "mainView"
    applicationName: "chub.sil"
    useDeprecatedToolbar: false
    width: units.gu(40)
    height: units.gu(71)

    Page {
        Column {
            Label {
                text: "Press the button to show the ContentPeerPicker"
            }
            Button {
                text: "Go on, press"
                onClicked: cpp.visible = true
            }
            ContentPeerPicker {
                id: cpp
                visible: false
                contentType: ContentType.All
                handler: ContentType.Share
                onPeerSelected: {
                    console.log("They chose a peer. We don't do anything, yet.");
                }
            }
        }
    }
}
Download as text