* 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>
29 lines
917 B
QML
29 lines
917 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import QtQuick.Layouts 1.3
|
|
import ovras.advsettings 1.0
|
|
import "../../common"
|
|
|
|
MyToggleButton {
|
|
id: audioMuteProximitySensorToggle
|
|
Layout.preferredWidth: 600
|
|
text: "Proximity Sensor Mutes/Unmutes Microphone"
|
|
onClicked: {
|
|
AudioTabController.setMicProximitySensorCanMute(checked, false)
|
|
}
|
|
Component.onCompleted: {
|
|
if (AudioTabController.micDeviceIndex < 0) {
|
|
audioMuteProximitySensorToggle.enabled = false
|
|
} else {
|
|
audioMuteProximitySensorToggle.enabled = true
|
|
audioMuteProximitySensorToggle.checked = AudioTabController.micProximitySensorCanMute
|
|
}
|
|
}
|
|
Connections {
|
|
target: AudioTabController
|
|
function onMicProximitySensorCanMuteChanged() {
|
|
audioMuteProximitySensorToggle.checked = AudioTabController.micProximitySensorCanMute
|
|
}
|
|
}
|
|
}
|