Add missing documentation for Audio and MediaPlayer loops property.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 10 Mar 2014 14:08:44 +0000 (15:08 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Mar 2014 17:59:10 +0000 (18:59 +0100)
Task-number: QTBUG-35306
Change-Id: If0e9784ede5db887d3756972e8db54b5485d6cdd
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
src/imports/multimedia/qdeclarativeaudio.cpp

index bce0b7e..4f74161 100644 (file)
@@ -441,6 +441,18 @@ void QDeclarativeAudio::seek(int position)
 */
 
 /*!
+    \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
 
     This property indicates if loading of media should begin immediately.
@@ -1233,6 +1245,18 @@ void QDeclarativeAudio::_q_statusChanged()
 */
 
 /*!
+    \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
 
     This property indicates if loading of media should begin immediately.