Move other PTT buttons into the PttButtons component

The other components were not organized together with the remaining Ptt
buttons. This creates unnecessary separation between related buttons.
This commit is contained in:
Vasily
2019-02-01 19:49:12 +01:00
parent bcd14cdddf
commit e0bff66cec
2 changed files with 73 additions and 71 deletions
-26
View File
@@ -49,25 +49,7 @@ MyStackViewPage {
}
PttButtons {
}
RowLayout {
MyToggleButton {
id: audioPttShowNotificationToggle
Layout.leftMargin: 350
text: "Show notification in HMD"
onCheckedChanged: {
AudioTabController.setPttShowNotification(checked, false)
}
}
MyToggleButton {
id: audioPttReverseToggle
Layout.leftMargin: 118
text: "Push-to-Mute"
onClicked: {
AudioTabController.setMicReversePtt(checked, false)
}
}
}
RowLayout {
spacing: 10
@@ -186,18 +168,10 @@ MyStackViewPage {
Component.onCompleted: {
reloadPttProfiles()
reloadAudioProfiles()
audioPttShowNotificationToggle.checked = AudioTabController.pttShowNotification
audioPttReverseToggle.checked = AudioTabController.micReversePtt
}
Connections {
target: AudioTabController
onMicReversePttChanged: {
audioPttReverseToggle.checked = AudioTabController.micReversePtt
}
onPttShowNotificationChanged: {
audioPttShowNotificationToggle.checked = AudioTabController.pttShowNotification
}
onPttProfilesUpdated: {
reloadPttProfiles()
}