remove qml warning

This commit is contained in:
王劲鹏 2021-06-10 14:19:00 +08:00 committed by osborn
parent a62d0369c5
commit ea8c39e0d7

View File

@ -43,7 +43,8 @@ ApplicationWindow {
} }
MouseArea { MouseArea {
anchors.fill: parent width: parent.width
height: parent.height
onClicked: { onClicked: {
navigatorPop() navigatorPop()
} }
@ -66,25 +67,27 @@ ApplicationWindow {
} }
Rectangle { Rectangle {
id: content
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
StackView { StackView {
id: stack id: stack
objectName: "stackView" objectName: "stackView"
anchors.fill: parent anchors.fill: content
initialItem: ScrollView { initialItem: ScrollView {
id: entry id: entry
anchors.fill: parent width: content.width
height: content.height
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOff ScrollBar.vertical.policy: ScrollBar.AlwaysOff
ListView { ListView {
id: list id: list
width: parent.width width: content.width
model: 23 model: 23
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.StopAtBounds
@ -148,7 +151,7 @@ ApplicationWindow {
} }
} }
} }
width: parent.width width: content.width
height: 60 height: 60
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent