Warning, /network/kdeconnect-kde/app/qml/Settings.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0003 
0004 import QtQuick
0005 import QtQuick.Controls
0006 import QtQuick.Layouts
0007 import org.kde.kirigami as Kirigami
0008 import org.kde.kirigamiaddons.formcard as FormCard
0009 import org.kde.kdeconnect
0010 import org.kde.kdeconnect.app
0011 
0012 FormCard.FormCardPage {
0013     title: i18nc("@title:window", "Settings")
0014 
0015     FormCard.FormCard {
0016         Layout.topMargin: Kirigami.Units.gridUnit
0017 
0018         FormCard.FormTextFieldDelegate {
0019             text: announcedNameProperty.value
0020             onAccepted: DaemonDbusInterface.setAnnouncedName(text);
0021             label: i18n("Device name")
0022 
0023             DBusProperty {
0024                 id: announcedNameProperty
0025                 object: DaemonDbusInterface
0026                 read: "announcedName"
0027                 defaultValue: ""
0028             }
0029         }
0030     }
0031 
0032     FormCard.FormCard {
0033         Layout.topMargin: Kirigami.Units.gridUnit
0034 
0035         FormCard.FormButtonDelegate {
0036             text: i18n("About KDE Connect")
0037             onClicked: applicationWindow().pageStack.layers.push(aboutPage)
0038             Component {
0039                 id: aboutPage
0040                 FormCard.AboutPage {
0041                     aboutData: About
0042                 }
0043             }
0044         }
0045 
0046         FormCard.FormButtonDelegate {
0047             text: i18n("About KDE")
0048             onClicked: applicationWindow().pageStack.layers.push(aboutKDE)
0049 
0050             Component {
0051                 id: aboutKDE
0052                 FormCard.AboutKDE {}
0053             }
0054         }
0055     }
0056 }