added backnavigation and qrc

This commit is contained in:
Anika Raemer 2018-10-19 22:01:14 +02:00
parent 0b9e8fa067
commit a32fd01e81
15 changed files with 138 additions and 55 deletions

View file

@ -8,44 +8,54 @@ Window {
height: 480
title: "LenaPi 1.0"
MyScrollView{
id: circleList
anchors.left: parent.left
anchors.right: parent.right
Image{
id: background
anchors.fill: parent
z: -1
source: "qrc:/background"
}
RoundButton{
id: back
anchors.top: parent.top
anchors.left: parent.left
anchors.margins: 20
flickableItem.interactive: true
contentItem:
ListView{
model: navigationList.pModelItems
anchors.fill: parent
spacing: 10
orientation: ListView.Horizontal
delegate:
NavigationListDelegate{
id: delegate
model: navigationList.pModelItems[index]
}
}
}
// MyScrollView{
// anchors.left: parent.left
// anchors.right: parent.right
// anchors.top: circleList.bottom
// anchors.margins: 20
visible: navigationList.pIsBackVisible
onClicked: navigationList.navigateBack();
}
Rectangle{
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
height: 210
color: "#99ffffff"
ListView{
id: circleList
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.margins: 20
height: parent.height - 40
model: navigationList.pModelItems
spacing: 20
orientation: ListView.Horizontal
delegate:
NavigationListDelegate{
id: delegate
height: parent.height
model: navigationList.pModelItems[index]
}
}
}
// flickableItem.interactive: true
// contentItem:
// ListView{
// model: 20
// anchors.fill: parent
// spacing: 10
// orientation: ListView.Horizontal
// delegate:
// NavigationListDelegate{
// id: test
// }
// }
// }
}