lena_pi/LenaPi/main.qml
2018-10-19 22:01:14 +02:00

61 lines
1.3 KiB
QML

import QtQuick 2.7
import QtQuick.Window 2.2
import QtQuick.Controls 1.4
Window {
visible: true
width: 800
height: 480
title: "LenaPi 1.0"
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
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]
}
}
}
}