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
- SilicaFlickable {
- anchors.fill: parent
- // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
- PullDownMenu {
- MenuItem {
- text: "About"
- onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml"))
- }
- }
- // Tell SilicaFlickable the height of its content.
- contentHeight: childrenRect.height
- SilicaListView {
- id: listView
- model: 20
- anchors.fill: parent
- header: PageHeader {
- title: "Soma.fm channels"
- }
- delegate: BackgroundItem {
- Label {
- x: Theme.paddingLarge
- text: "Item " + index
- }
- onClicked: console.log("Clicked " + index)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement