forked from ghostfox/qyouradio
better and better
This commit is contained in:
@@ -11,12 +11,10 @@ Item {
|
||||
property bool failed: false
|
||||
|
||||
GridView {
|
||||
width: Math.floor(cellWidth / parent.width) * cellWidth
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
// anchors.topMargin: Player.active ? 96 : 0
|
||||
width: Math.floor(parent.width / cellWidth) * cellWidth
|
||||
visible: !loading || !failed
|
||||
anchors.fill: parent
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
model: ListModel { id: model }
|
||||
clip: true
|
||||
|
||||
@@ -25,7 +23,7 @@ Item {
|
||||
|
||||
delegate: VideoEntry {}
|
||||
|
||||
Component.onCompleted: console.log(cellWidth / parent.width)
|
||||
Component.onCompleted: console.log(parent.width / cellWidth)
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
@@ -58,12 +56,12 @@ Item {
|
||||
|
||||
Button {
|
||||
text: "Retry"
|
||||
onClicked: parent.fetchData()
|
||||
onClicked: parent.parent.fetchData()
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 1000
|
||||
interval: 0
|
||||
running: true
|
||||
onTriggered: parent.fetchData()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user