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.");
}
}
}
}
}