From 2e556aef9375377439b9b6da8d455fe891abfd7c Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Wed, 7 Sep 2016 14:56:05 +0200 Subject: Add missing loops property in QML Video type The property exists in MediaPlayer but was not aliased in Video. Change-Id: I77a1cede776cd48b01ec91c645fa719eeb474420 Reviewed-by: Christian Stromme --- src/imports/multimedia/Video.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/imports') diff --git a/src/imports/multimedia/Video.qml b/src/imports/multimedia/Video.qml index 70bd2ccf4..26dd12ca4 100644 --- a/src/imports/multimedia/Video.qml +++ b/src/imports/multimedia/Video.qml @@ -386,6 +386,21 @@ Item { */ property alias notifyInterval: player.notifyInterval + /*! + \qmlproperty int Video::loops + + This property holds the number of times the media is played. A value of \c 0 or \c 1 means + the media will be played only once; set to \c MediaPlayer.Infinite to enable infinite looping. + + The value can be changed while the media is playing, in which case it will update + the remaining loops to the new value. + + The default is \c 1. + + \since 5.9 + */ + property alias loops: player.loops + /*! \qmlsignal Video::paused() -- cgit v1.2.3