aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/MediaAreaBlank.qml
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-02-23 13:57:35 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2018-02-23 13:57:35 +0100
commitd2f071d5d8c5c21c4f438bf5a822fbaddb2d97ce (patch)
treee69b8367c41b2a23c107d86c2467977d7cb39d57 /homescreen/qml/MediaAreaBlank.qml
parent43dc156f29b89efd4055b8b412e888c0c3129e7b (diff)
hack: control master volume using 4a with the homescreen slidersandbox/ctxnop/4avolume
Change-Id: If527d160f8eacbcfed3df2ab744485995dbe1dc9 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'homescreen/qml/MediaAreaBlank.qml')
-rw-r--r--homescreen/qml/MediaAreaBlank.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml
index 2b888c8..6114b55 100644
--- a/homescreen/qml/MediaAreaBlank.qml
+++ b/homescreen/qml/MediaAreaBlank.qml
@@ -71,6 +71,7 @@ Image {
MasterVolume {
id: mv
objectName: "mv"
+ Component.onCompleted: mv.init(afbPort, afbToken)
onVolumeChanged: slider.value = volume
}
@@ -101,10 +102,11 @@ Image {
id: slider
Layout.fillWidth: true
from: 0
- to: 65536
- stepSize: 256
+ to: 100
+ stepSize: 1
snapMode: Slider.SnapOnRelease
onValueChanged: mv.volume = value
+ value: 0
Component.onCompleted: value = mv.volume
onPressedChanged: {
if (pressed) {volume_timer.stop()}