Skip to content

Commit

Permalink
add busy indicator for images that are loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mgn-norm committed Sep 19, 2021
1 parent 0b13d55 commit 6dbed34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/qml/WebtoonImage.qml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import QtQuick 2.8
import QtQuick.Controls 2.15

Rectangle {
color: "black"
width: base.width
height: base.width * 2
signal imageLoaded()

BusyIndicator {
running: image.status == Image.Loading
anchors.centerIn: parent
}

Image {
id: image
fillMode: Image.PreserveAspectFit
Expand Down

0 comments on commit 6dbed34

Please sign in to comment.