Merge branch 'master' into multiple_apis
This commit is contained in:
commit
e764ba2c9d
4 changed files with 31 additions and 6 deletions
|
@ -49,11 +49,17 @@ Rectangle {
|
|||
}
|
||||
|
||||
onDownloadFinished: {
|
||||
|
||||
grid.opacity = 1
|
||||
runningIndicator.running = false
|
||||
|
||||
if (danbooruModel.rowCount() == 0) {
|
||||
warnLabel.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
onDownloadStarted: {
|
||||
warnLabel.visible = false
|
||||
grid.opacity = 0.5
|
||||
runningIndicator.running = true
|
||||
}
|
||||
|
@ -68,6 +74,20 @@ Rectangle {
|
|||
running: false
|
||||
}
|
||||
|
||||
Label {
|
||||
id: warnLabel
|
||||
z: 1
|
||||
width: grid.cellWidth / 2
|
||||
height: grid.cellHeight / 2
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
visible: false
|
||||
text: "No posts found."
|
||||
color: black
|
||||
|
||||
|
||||
}
|
||||
|
||||
Component {
|
||||
id: highlight
|
||||
Rectangle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue