2022-12-13 20:48:47 +00:00
|
|
|
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
|
|
|
|
// 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
|
2023-09-13 15:45:15 +01:00
|
|
|
import org.kde.kirigamiaddons.formcard 1.0 as FormCard
|
2022-12-13 20:48:47 +00:00
|
|
|
import org.kde.kdeconnect 1.0
|
|
|
|
import org.kde.kdeconnect.app 1.0
|
|
|
|
|
2023-09-13 15:45:15 +01:00
|
|
|
FormCard.FormCardPage {
|
2022-12-13 20:48:47 +00:00
|
|
|
title: i18nc("@title:window", "Settings")
|
|
|
|
|
2023-09-13 15:45:15 +01:00
|
|
|
FormCard.FormCard {
|
|
|
|
Layout.topMargin: Kirigami.Units.gridUnit
|
2022-12-13 20:48:47 +00:00
|
|
|
|
2023-09-13 15:45:15 +01:00
|
|
|
FormCard.FormTextFieldDelegate {
|
|
|
|
text: announcedNameProperty.value
|
|
|
|
onAccepted: DaemonDbusInterface.setAnnouncedName(text);
|
|
|
|
label: i18n("Device name")
|
|
|
|
|
|
|
|
DBusProperty {
|
|
|
|
id: announcedNameProperty
|
|
|
|
object: DaemonDbusInterface
|
|
|
|
read: "announcedName"
|
|
|
|
defaultValue: ""
|
2022-12-13 20:48:47 +00:00
|
|
|
}
|
|
|
|
}
|
2023-09-13 15:45:15 +01:00
|
|
|
}
|
2022-12-13 20:48:47 +00:00
|
|
|
|
2023-09-13 15:45:15 +01:00
|
|
|
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
|
2022-12-13 20:48:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-09-13 15:45:15 +01:00
|
|
|
|
|
|
|
FormCard.FormButtonDelegate {
|
|
|
|
text: i18n("About KDE")
|
|
|
|
onClicked: applicationWindow().pageStack.layers.push(aboutKDE)
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: aboutKDE
|
|
|
|
FormCard.AboutKDE {}
|
|
|
|
}
|
|
|
|
}
|
2022-12-13 20:48:47 +00:00
|
|
|
}
|
|
|
|
}
|