X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fqml%2FMediaAreaBlank.qml;fp=homescreen%2Fqml%2FMediaAreaBlank.qml;h=b758a7de356a995c9bff815223d4e52a26492c78;hb=e490ff1e1e31b4a837cb8063f7346dc65ffe073e;hp=7a9e8af367dd340cdb2b09b61f8683b595b3222d;hpb=c35327b02a28a83536450a664326d183662e89e1;p=apps%2Fhomescreen.git diff --git a/homescreen/qml/MediaAreaBlank.qml b/homescreen/qml/MediaAreaBlank.qml index 7a9e8af..b758a7d 100644 --- a/homescreen/qml/MediaAreaBlank.qml +++ b/homescreen/qml/MediaAreaBlank.qml @@ -19,9 +19,7 @@ import QtQuick 2.2 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import AGL.Demo.Controls 1.0 -/* import MasterVolume 1.0 -*/ Image { anchors.fill: parent @@ -68,16 +66,13 @@ Image { transitions: Transition { NumberAnimation { property: "opacity"; duration: 500} } -/* + MasterVolume { id: mv objectName: "mv" onVolumeChanged: slider.value = volume - Component.onCompleted: { - mv.open(bindingAddress); - } } -*/ + Item { id: master_volume anchors.fill: parent @@ -108,10 +103,9 @@ Image { to: 100 stepSize: 1 snapMode: Slider.SnapOnRelease -/* onValueChanged: mv.volume = value Component.onCompleted: value = mv.volume -*/ + onPressedChanged: { if (pressed) {volume_timer.stop()} else {volume_timer.restart()}