Advertisement
Guest User

Untitled

a guest
Feb 28th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. import QtQuick 2.0
  2. import Sailfish.Silica 1.0
  3.  
  4.  
  5. Page {
  6. id: page
  7.  
  8. // To enable PullDownMenu, place our content in a SilicaFlickable
  9. SilicaListView {
  10. anchors.fill: parent
  11.  
  12. // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
  13. PullDownMenu {
  14. MenuItem {
  15. text: "Input Crane Name"
  16. onClicked: pageStack.push(Qt.resolvedUrl("CraneNamePage.qml"))
  17. }
  18. }
  19.  
  20. header: Component { Column {
  21. id: column
  22.  
  23. width: page.width
  24. //anchors.bottom: page.bottom
  25. spacing: Theme.paddingLarge
  26. PageHeader {
  27. title: "Metacrane"
  28. }
  29. TextField {
  30. id: crane_name
  31. text: ""
  32. placeholderText: "Crane Name"
  33. //label: "Crane Name"
  34. width: page.width
  35. height: Theme.itemSizeLarge
  36. EnterKey.enabled: text.length > 0
  37. EnterKey.iconSource: "image://theme/icon-m-enter-accept"
  38. }
  39. }
  40. }
  41.  
  42. VerticalScrollDecorator {}
  43. model: ListModel {
  44. ListElement {name: "Kebab"}
  45. ListElement {name: "Nakki"}
  46. ListElement {name: "Rullakebab"}
  47. ListElement {name: "Pitsa"}
  48. }
  49. delegate: Item {
  50. width: itemlist.contentWidth
  51. //width: itemlist.width
  52. height: Theme.itemSizeMedium
  53. Label {text: name}
  54. }
  55.  
  56. }
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement