Guest User

Untitled

a guest
Dec 4th, 2015
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3.  
  4.  
  5. Page {
  6. id: page
  7.  
  8. SilicaListView {
  9. id:connList
  10. anchors.fill: parent
  11. VerticalScrollDecorator { flickable:connList }
  12.  
  13. PullDownMenu {
  14.  
  15. MenuItem {
  16. text: qsTr("About")
  17. onClicked: pageStack.push(Qt.resolvedUrl("A.qml"))
  18. }
  19. MenuItem {
  20. text: qsTr("New S connection")
  21. onClicked: pageStack.push(Qt.resolvedUrl("CreateS.qml"))
  22. }
  23. MenuItem {
  24. text: qsTr("New M connection")
  25. onClicked: pageStack.push(Qt.resolvedUrl("CreateM.qml"))
  26. }
  27. }
  28.  
  29. PageHeader {
  30.  
  31. Image {
  32. source: "logo.png"
  33. height: 200
  34. width: 200
  35. fillMode: Image.PreserveAspectFit
  36. anchors {
  37. horizontalCenter: parent.horizontalCenter
  38. }
  39. }
  40. Button {
  41. text: "FIll conn"
  42. anchors.horizontalCenter: parent.horizontalCenter
  43. onClicked: {
  44. console.log("Generating content...")
  45. connectionsColumn.model = 15
  46.  
  47. console.log("Done!")
  48. }
  49. }
  50. }
  51. SectionHeader {
  52. text: qsTr("Conns")
  53. }
  54. }
  55. }
RAW Paste Data