finish volume widget
This commit is contained in:
parent
5005ba24db
commit
c4ad2cee18
3 changed files with 12 additions and 7 deletions
|
|
@ -24,9 +24,11 @@ PopupWindow {
|
|||
ColumnLayout {
|
||||
id: audioLayout
|
||||
anchors.fill: parent
|
||||
anchors.margins: 12
|
||||
anchors.centerIn: parent
|
||||
anchors.margins: 10
|
||||
spacing: 8
|
||||
Repeater {
|
||||
|
||||
model: Audio.sinks
|
||||
delegate: Rectangle {
|
||||
id: audioDelContainer
|
||||
|
|
@ -44,7 +46,7 @@ PopupWindow {
|
|||
|
||||
StyledText {
|
||||
text: audioDelContainer.modelData.nickname
|
||||
Layout.leftMargin: 10
|
||||
Layout.leftMargin: 10
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
IconImage {
|
||||
|
|
@ -81,7 +83,7 @@ PopupWindow {
|
|||
cursorShape: Qt.PointingHandCursor
|
||||
acceptedButtons: Qt.LeftButton
|
||||
onClicked: {
|
||||
Audio.preferredAudio = audioDelContainer.modelData
|
||||
Audio.setDefaultSink(audioDelContainer.modelData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue