Files
OpenVR-AdvancedSettings-frame/src/res/qml/audio_page/push_to_talk/PttButtons.qml
T
ykearaandRTUnreal ca0ec3e07d Qt6 (#669)
* update qt6 upgrade progress

* add flawed addition for QRenderTarget and link needed libs

* update to better logging format

* move many assets and qml files into qrc

* get rid of deprecation messages

* remove additional deprecation notices

* make Qt6 finally render on desktop with some progress on vr

* initialize QRhi with QQuickRenderControl

* use default values to stop SegFaults

* fix compilation on windows

* add windows files for aiding in running exe

* fix formatting of testing qt.conf

* first attempt on using textures instead of files in AudioTabController

* Fix public/private access issue

---------

Co-authored-by: RTUnreal <unreal@rtinf.net>
2024-04-03 22:49:24 -05:00

53 lines
1.6 KiB
QML

import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import ovras.advsettings 1.0
import "../../common"
ColumnLayout {
RowLayout {
MyToggleButton {
id: audioPttEnabledToggle
Layout.fillWidth: true
text: "Push-to-Talk:"
onClicked: {
AudioTabController.setPttEnabled(checked, true)
}
}
MyToggleButton {
id: audioPttShowNotificationToggle
Layout.fillWidth: true
text: "Show notification in HMD"
onCheckedChanged: {
AudioTabController.setPttShowNotification(checked, false)
}
}
MyToggleButton {
id: audioPttReverseToggle
Layout.fillWidth: true
text: "Push-to-Mute"
onClicked: {
AudioTabController.setMicReversePtt(checked, false)
}
}
}
Component.onCompleted: {
audioPttEnabledToggle.checked = AudioTabController.pttEnabled
audioPttShowNotificationToggle.checked = AudioTabController.pttShowNotification
audioPttReverseToggle.checked = AudioTabController.micReversePtt
}
Connections {
target: AudioTabController
function onPttEnabledChanged() {
audioPttEnabledToggle.checked = AudioTabController.pttEnabled
}
function onMicReversePttChanged() {
audioPttReverseToggle.checked = AudioTabController.micReversePtt
}
function onPttShowNotificationChanged() {
audioPttShowNotificationToggle.checked = AudioTabController.pttShowNotification
}
}
}