6366ceb530
Depending on the content we want to use Page or ScrollablePage The runcommand config should be a scrollablepage, but isn't right now The code even (incompletely) works around that To address this make the individual config files add their page instead of an additional wrapper page
45 lines
1.2 KiB
QML
45 lines
1.2 KiB
QML
/**
|
|
* SPDX-FileCopyrightText: 2022 Yuchen Shi <bolshaya_schists@mail.gravitide.co>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15 as QQC2
|
|
import QtQuick.Layouts 1.15
|
|
import org.kde.kirigami 2.20 as Kirigami
|
|
import org.kde.kdeconnect 1.0
|
|
|
|
Kirigami.Page {
|
|
|
|
property string device
|
|
|
|
Kirigami.FormLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
KdeConnectPluginConfig {
|
|
id: config
|
|
deviceId: device
|
|
pluginName: "kdeconnect_clipboard"
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
autoShare.checked = config.getBool("autoShare", config.getBool("sendUnknown", true))
|
|
password.checked = config.getBool("sendPassword", true)
|
|
}
|
|
|
|
QQC2.CheckBox {
|
|
id: autoShare
|
|
text: i18n("Automatically share the clipboard from this device")
|
|
onClicked: config.set("autoShare", checked)
|
|
}
|
|
|
|
QQC2.CheckBox {
|
|
id: password
|
|
text: i18n("Including passwords (as marked by password managers)")
|
|
onClicked: config.set("sendPassword", checked)
|
|
}
|
|
|
|
}
|
|
}
|