Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Page {
  2. id: page
  3.  
  4. Component.onCompleted: populateList()
  5.  
  6. SilicaListView {
  7. id:connectionsList
  8. anchors.fill: parent
  9. model:listModel
  10. section {
  11. property: 'section'
  12. delegate: SectionHeader {
  13. text: section
  14. }
  15. }
  16. VerticalScrollDecorator { flickable:connectionsList }
  17.  
  18. ViewPlaceholder {
  19. text: qsTr("Pull down to add a new connection.")
  20. enabled: connectionsList.count == 0
  21. }
  22.  
  23. header: Image {
  24. source: "logo.png"
  25. height: 200
  26. width: 200
  27. fillMode: Image.PreserveAspectFit
  28. anchors {
  29. top:page
  30. topMargin: 20
  31. horizontalCenter: parent.horizontalCenter
  32. }
  33. MouseArea {
  34. anchors.fill: parent
  35. onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement