Show busy indicator during loading of video

We need to provide some feedback during downloading the video.

REVIEW: 114431
This commit is contained in:
Martin Gräßlin 2013-12-13 10:56:47 +01:00
parent 8e1aea4ec6
commit 9e00284158

View file

@ -20,7 +20,7 @@
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.0
import org.kde.kwin.kwincompositing 1.0
import QtMultimedia 5.0 as Multimedia
@ -150,6 +150,11 @@ Item {
width: 400
height: 400
anchors.bottom: parent.bottom
BusyIndicator {
anchors.centerIn: parent
visible: videoItem.status == Multimedia.MediaPlayer.Loading
running: true
}
MouseArea {
// it's a mouse area with icon inside to not have an ugly button background
id: replayButton