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
|
|
|
|
|
2023-12-23 16:48:04 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
|
|
import org.kde.kirigamiaddons.formcard as FormCard
|
|
|
|
import org.kde.kdeconnect
|
|
|
|
import org.kde.kdeconnect.app
|
2022-12-13 20:48:47 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|