From 4bb51fef0a5da88a75d5ba593557367b990ccab5 Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Mon, 10 Mar 2014 15:08:44 +0100 Subject: [PATCH] Add missing documentation for Audio and MediaPlayer loops property. Task-number: QTBUG-35306 Change-Id: If0e9784ede5db887d3756972e8db54b5485d6cdd Reviewed-by: Jerome Pasion --- src/imports/multimedia/qdeclarativeaudio.cpp | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/imports/multimedia/qdeclarativeaudio.cpp b/src/imports/multimedia/qdeclarativeaudio.cpp index bce0b7e2..4f741616 100644 --- a/src/imports/multimedia/qdeclarativeaudio.cpp +++ b/src/imports/multimedia/qdeclarativeaudio.cpp @@ -440,6 +440,18 @@ void QDeclarativeAudio::seek(int position) This property holds the source URL of the media. */ +/*! + \qmlproperty int QtMultimedia::Audio::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 Audio.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. +*/ + /*! \qmlproperty bool QtMultimedia::Audio::autoLoad @@ -1232,6 +1244,18 @@ void QDeclarativeAudio::_q_statusChanged() This property holds the source URL of the media. */ +/*! + \qmlproperty int QtMultimedia::MediaPlayer::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. +*/ + /*! \qmlproperty bool QtMultimedia::MediaPlayer::autoLoad