Removed special sound for Mute and replace it with hover and click sounds

This commit is contained in:
vladest 2017-10-12 19:15:09 +02:00
parent 35b146b59a
commit 2d010980b0
2 changed files with 11 additions and 7 deletions

View file

@ -14,6 +14,8 @@ import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import TabletScriptingInterface 1.0
Rectangle {
readonly property var level: Audio.inputLevel;
@ -57,8 +59,16 @@ Rectangle {
hoverEnabled: true;
scrollGestureEnabled: false;
onClicked: { Audio.muted = !Audio.muted; }
onClicked: {
Audio.muted = !Audio.muted;
tabletInterface.playSound(TabletEnums.ButtonClick)
}
drag.target: dragTarget;
onContainsMouseChanged: {
if (containsMouse) {
tabletInterface.playSound(TabletEnums.ButtonHover)
}
}
}
QtObject {

View file

@ -33,10 +33,4 @@ Audio.disconnected.connect(function(){
Audio.playSound(disconnectSound, soundOptions);
});
Audio.mutedChanged.connect(function () {
if (Audio.muted) {
Audio.playSound(micMutedSound, soundOptions);
}
});
}()); // END LOCAL_SCOPE