diff options
author | Yoann Lopes <yoann.lopes@qt.io> | 2016-09-07 14:56:05 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2016-09-15 13:38:19 +0000 |
commit | 2e556aef9375377439b9b6da8d455fe891abfd7c (patch) | |
tree | b9aafb6299ab6a9ae39dcf0d5abe7984f98630d2 | |
parent | fe2bbf458cefcd29e2802eb408926fd76ab16bae (diff) |
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 <christian.stromme@qt.io>
-rw-r--r-- | src/imports/multimedia/Video.qml | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -387,6 +387,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() This signal is emitted when playback is paused. |