mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-16 22:45:18 +00:00
31 lines
812 B
QML
31 lines
812 B
QML
|
import QtQuick 2.0
|
||
|
import Sailfish.Silica 1.0
|
||
|
|
||
|
Page {
|
||
|
id: page
|
||
|
|
||
|
// The effective value will be restricted by ApplicationWindow.allowedOrientations
|
||
|
allowedOrientations: Orientation.All
|
||
|
|
||
|
SilicaListView {
|
||
|
id: listView
|
||
|
model: 20
|
||
|
anchors.fill: parent
|
||
|
header: PageHeader {
|
||
|
title: qsTr("Nested Page")
|
||
|
}
|
||
|
delegate: BackgroundItem {
|
||
|
id: delegate
|
||
|
|
||
|
Label {
|
||
|
x: Theme.horizontalPageMargin
|
||
|
text: qsTr("Item") + " " + index
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||
|
}
|
||
|
onClicked: console.log("Clicked " + index)
|
||
|
}
|
||
|
VerticalScrollDecorator {}
|
||
|
}
|
||
|
}
|