mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 09:43:51 +02:00
Added sounds in Audio menu
This commit is contained in:
parent
da734b628c
commit
35b146b59a
1 changed files with 12 additions and 0 deletions
|
@ -13,6 +13,7 @@ import QtQuick.Controls 2.2
|
||||||
|
|
||||||
import "../styles-uit"
|
import "../styles-uit"
|
||||||
import "../controls-uit" as HiFiControls
|
import "../controls-uit" as HiFiControls
|
||||||
|
import TabletScriptingInterface 1.0
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: checkBox
|
id: checkBox
|
||||||
|
@ -32,6 +33,17 @@ CheckBox {
|
||||||
readonly property int checkSize: Math.max(boxSize - 8, 10)
|
readonly property int checkSize: Math.max(boxSize - 8, 10)
|
||||||
readonly property int checkRadius: isRound ? checkSize / 2 : 2
|
readonly property int checkRadius: isRound ? checkSize / 2 : 2
|
||||||
focusPolicy: Qt.ClickFocus
|
focusPolicy: Qt.ClickFocus
|
||||||
|
hoverEnabled: true
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
tabletInterface.playSound(TabletEnums.ButtonClick)
|
||||||
|
}
|
||||||
|
|
||||||
|
onHoveredChanged: {
|
||||||
|
if (hovered) {
|
||||||
|
tabletInterface.playSound(TabletEnums.ButtonHover)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
indicator: Rectangle {
|
indicator: Rectangle {
|
||||||
id: box
|
id: box
|
||||||
|
|
Loading…
Reference in a new issue