summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-01-04 15:32:28 +0100
committerDominik Holland <dominik.holland@pelagicore.com>2017-01-12 09:37:03 +0000
commite8c22fe783deeea75dbcc771b51e504ce2da3635 (patch)
treeaf2333e8c97c8f737d52ee9759891ac441d90282 /examples
parente737a8b46690f2ac17a2f4a44f7ab4b96f4a6d62 (diff)
downloadqtivi-e8c22fe783deeea75dbcc771b51e504ce2da3635.tar.gz
Make the currentIndex property of QIviPlayQueue writable
Change-Id: I87b3fbb880fac8008d387bb6d0e0e5c89b331402 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/media/mediaplayer/main.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/media/mediaplayer/main.qml b/examples/media/mediaplayer/main.qml
index 5a637f5..9e05e5b 100644
--- a/examples/media/mediaplayer/main.qml
+++ b/examples/media/mediaplayer/main.qml
@@ -125,7 +125,8 @@ ApplicationWindow {
MouseArea {
anchors.fill: parent
onClicked: {
-
+ mediaPlayer.playQueue.currentIndex = index
+ mediaPlayer.play()
}
}