Warning, /network/kdeconnect-kde/app/qml/volume.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>
0003 *
0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006
0007 import QtQuick
0008 import QtQuick.Controls
0009 import QtQuick.Layouts
0010 import org.kde.kirigami as Kirigami
0011 import org.kde.kdeconnect
0012
0013 Kirigami.Page
0014 {
0015 id: root
0016 title: i18nd("kdeconnect-app", "Volume control")
0017 property QtObject pluginInterface
0018
0019 ListView {
0020 id: sinkList
0021 anchors.fill: parent
0022 spacing: Kirigami.Units.largeSpacing
0023
0024 model: RemoteSinksModel {
0025 deviceId: pluginInterface.deviceId
0026 }
0027 delegate: ColumnLayout {
0028
0029 width: parent.width
0030
0031 Label {
0032 text: description
0033 elide: Text.ElideRight
0034 Layout.fillWidth: true
0035 }
0036
0037 RowLayout {
0038
0039 Button {
0040 icon.name: muted ? "player-volume-muted" : "player-volume"
0041 onClicked: muted = !muted
0042 }
0043
0044 Slider {
0045 Layout.fillWidth: true
0046 from: 0
0047 value: volume
0048 to: maxVolume
0049 onMoved: volume = value
0050 }
0051 }
0052 }
0053 }
0054 }
0055