Indent PTT controls on AudioPage

The PTT controls were grouped in a ColumnLayout with the microphone
device and volume controls. Grouping the microphone controls together
mirrors what is done with the mirror device controls.
This commit is contained in:
Vasily
2019-02-01 16:38:48 +01:00
parent 86599fbd29
commit 5aa5d84345
2 changed files with 44 additions and 42 deletions
+43 -41
View File
@@ -116,7 +116,9 @@ MyStackViewPage {
} }
} }
} }
}
ColumnLayout {
spacing: 18
MyToggleButton { MyToggleButton {
id: audioMuteProximitySensorToggle id: audioMuteProximitySensorToggle
Layout.preferredWidth: 600 Layout.preferredWidth: 600
@@ -252,50 +254,50 @@ MyStackViewPage {
} }
} }
RowLayout { RowLayout {
spacing: 18 spacing: 18
MyPushButton { MyPushButton {
id: audioDeleteProfileButton id: audioDeleteProfileButton
enabled: true enabled: true
Layout.preferredWidth: 200 Layout.preferredWidth: 200
text: "Delete Profile" text: "Delete Profile"
onClicked: { onClicked: {
if (audioProfileComboBox.currentIndex > 0) { if (audioProfileComboBox.currentIndex > 0) {
audioDeleteProfileDialog.profileIndex = audioProfileComboBox.currentIndex - 1 audioDeleteProfileDialog.profileIndex = audioProfileComboBox.currentIndex - 1
audioDeleteProfileDialog.open() audioDeleteProfileDialog.open()
}
}
}
MyPushButton {
Layout.preferredWidth: 200
text: "New Profile"
onClicked: {
audioNewProfileDialog.openPopup()
}
}
Item {
Layout.fillWidth: true
}
MyPushButton {
id: pttDeleteProfileButton
enabled: true
Layout.preferredWidth: 200
text: "Delete Profile"
onClicked: {
if (pttProfileComboBox.currentIndex > 0) {
pttDeleteProfileDialog.profileIndex = pttProfileComboBox.currentIndex - 1
pttDeleteProfileDialog.open()
}
}
}
MyPushButton {
Layout.preferredWidth: 200
text: "New Profile"
onClicked: {
pttNewProfileDialog.openPopup()
} }
} }
} }
MyPushButton {
Layout.preferredWidth: 200
text: "New Profile"
onClicked: {
audioNewProfileDialog.openPopup()
}
}
Item {
Layout.fillWidth: true
}
MyPushButton {
id: pttDeleteProfileButton
enabled: true
Layout.preferredWidth: 200
text: "Delete Profile"
onClicked: {
if (pttProfileComboBox.currentIndex > 0) {
pttDeleteProfileDialog.profileIndex = pttProfileComboBox.currentIndex - 1
pttDeleteProfileDialog.open()
}
}
}
MyPushButton {
Layout.preferredWidth: 200
text: "New Profile"
onClicked: {
pttNewProfileDialog.openPopup()
}
}
}
} }
Component.onCompleted: { Component.onCompleted: {
@@ -23,7 +23,7 @@ RowLayout {
Layout.minimumWidth: 850 Layout.minimumWidth: 850
Layout.preferredWidth: 850 Layout.preferredWidth: 850
onActivated: { onActivated: {
if (componentCompleted) { if (deviceIndex >= 0) {
AudioTabController.setMicDeviceIndex(currentIndex) AudioTabController.setMicDeviceIndex(currentIndex)
} }
} }