refactored item type; moved navigation to qml component
This commit is contained in:
parent
a32fd01e81
commit
bf145a9be9
7 changed files with 54 additions and 55 deletions
|
|
@ -16,46 +16,9 @@ Window {
|
|||
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]
|
||||
}
|
||||
}
|
||||
Loader{
|
||||
anchors.fill: parent
|
||||
source: "Navigation.qml"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue