Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import Sailfish.Silica 1.0
- Page {
- id: page
- // To enable PullDownMenu, place our content in a SilicaFlickable
- SilicaListView {
- anchors.fill: parent
- // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
- PullDownMenu {
- MenuItem {
- text: "Input Crane Name"
- onClicked: pageStack.push(Qt.resolvedUrl("CraneNamePage.qml"))
- }
- }
- header: Component { Column {
- id: column
- width: page.width
- //anchors.bottom: page.bottom
- spacing: Theme.paddingLarge
- PageHeader {
- title: "Metacrane"
- }
- TextField {
- id: crane_name
- text: ""
- placeholderText: "Crane Name"
- //label: "Crane Name"
- width: page.width
- height: Theme.itemSizeLarge
- EnterKey.enabled: text.length > 0
- EnterKey.iconSource: "image://theme/icon-m-enter-accept"
- }
- }
- }
- VerticalScrollDecorator {}
- model: ListModel {
- ListElement {name: "Kebab"}
- ListElement {name: "Nakki"}
- ListElement {name: "Rullakebab"}
- ListElement {name: "Pitsa"}
- }
- delegate: Item {
- width: itemlist.contentWidth
- //width: itemlist.width
- height: Theme.itemSizeMedium
- Label {text: name}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement