// SPDX-FileCopyrightText: 2022 Carl Schwan // 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 import QtQuick.Layouts 1.15 import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigamiaddons.formcard 1.0 as FormCard import org.kde.kdeconnect 1.0 import org.kde.kdeconnect.app 1.0 FormCard.FormCardPage { title: i18nc("@title:window", "Settings") FormCard.FormCard { Layout.topMargin: Kirigami.Units.gridUnit FormCard.FormTextFieldDelegate { text: announcedNameProperty.value onAccepted: DaemonDbusInterface.setAnnouncedName(text); label: i18n("Device name") DBusProperty { id: announcedNameProperty object: DaemonDbusInterface read: "announcedName" defaultValue: "" } } } FormCard.FormCard { Layout.topMargin: Kirigami.Units.gridUnit FormCard.FormButtonDelegate { text: i18n("About KDE Connect") onClicked: applicationWindow().pageStack.layers.push(aboutPage) Component { id: aboutPage FormCard.AboutPage { aboutData: About } } } FormCard.FormButtonDelegate { text: i18n("About KDE") onClicked: applicationWindow().pageStack.layers.push(aboutKDE) Component { id: aboutKDE FormCard.AboutKDE {} } } } }