Warning, /network/kdeconnect-kde/app/qml/PluginSettings.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2019 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.ScrollablePage { 0014 id: root 0015 title: i18n("Plugin Settings") 0016 property string device 0017 0018 ListView { 0019 anchors.fill: parent 0020 0021 model: PluginModel { 0022 deviceId: device 0023 } 0024 0025 delegate: Kirigami.SwipeListItem { 0026 0027 contentItem: RowLayout { 0028 CheckBox { 0029 id: serviceCheck 0030 Layout.alignment: Qt.AlignVCenter 0031 checked: model.isChecked 0032 onToggled: model.isChecked = checked 0033 } 0034 0035 ColumnLayout { 0036 spacing: 0 0037 Layout.fillWidth: true 0038 Layout.alignment: Qt.AlignVCenter 0039 0040 Label { 0041 Layout.fillWidth: true 0042 text: model.name 0043 elide: Text.ElideRight 0044 } 0045 0046 Label { 0047 Layout.fillWidth: true 0048 text: model.description 0049 elide: Text.ElideRight 0050 font: Kirigami.Theme.smallFont 0051 opacity: 0.7 0052 } 0053 } 0054 } 0055 0056 actions: [ 0057 Kirigami.Action { 0058 icon.name: "settings-configure" 0059 visible: configSource != "" 0060 onTriggered: { 0061 if (pageStack.lastItem.toString().startsWith("PluginInfoPage")) { 0062 pageStack.lastItem.configFile = configSource; 0063 pageStack.lastItem.title = name; 0064 pageStack.goForward(); 0065 } else { 0066 pageStack.push(Qt.resolvedUrl("PluginInfoPage.qml"), { 0067 title: name, 0068 configFile: configSource, 0069 device: root.device, 0070 }); 0071 } 0072 } 0073 } 0074 ] 0075 } 0076 } 0077 }