Improve QML types
This commit is contained in:
@@ -14,7 +14,7 @@ import org.kde.neochat 1.0
|
||||
FormCard.FormCardPage {
|
||||
id: root
|
||||
|
||||
property var connection
|
||||
required property NeoChatConnection connection
|
||||
|
||||
title: i18nc("@title", "Deactivate Account")
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.kde.neochat 1.0
|
||||
QQC2.Dialog {
|
||||
id: root
|
||||
|
||||
property var connection
|
||||
required property NeoChatConnection connection
|
||||
|
||||
ColumnLayout {
|
||||
Kirigami.Heading {
|
||||
|
||||
@@ -14,7 +14,8 @@ import org.kde.neochat 1.0
|
||||
|
||||
Kirigami.ScrollablePage {
|
||||
id: root
|
||||
property var connection
|
||||
|
||||
required property NeoChatConnection connection
|
||||
|
||||
property alias keyword: identifierField.text
|
||||
property string server
|
||||
|
||||
@@ -100,7 +100,7 @@ QQC2.ToolBar {
|
||||
delegate: Delegates.RoundedItemDelegate {
|
||||
id: userDelegate
|
||||
|
||||
required property var connection
|
||||
required property NeoChatConnection connection
|
||||
|
||||
width: parent.width
|
||||
text: connection.localUser.displayName
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.kde.neochat 1.0
|
||||
Kirigami.ScrollablePage {
|
||||
id: root
|
||||
|
||||
property var connection
|
||||
property NeoChatConnection connection
|
||||
|
||||
title: i18n("Start a Chat")
|
||||
|
||||
|
||||
@@ -12,15 +12,18 @@ import org.kde.kirigamiaddons.labs.mobileform 0.1 as MobileForm
|
||||
import org.kde.neochat 1.0
|
||||
|
||||
Kirigami.ScrollablePage {
|
||||
id: root
|
||||
|
||||
title: i18n("Devices")
|
||||
|
||||
property alias connection: devicesModel.connection
|
||||
required property NeoChatConnection connection
|
||||
|
||||
leftPadding: 0
|
||||
rightPadding: 0
|
||||
|
||||
DevicesModel {
|
||||
id: devicesModel
|
||||
connection: root.connection
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -6,10 +6,12 @@ import org.kde.kirigami 2.18 as Kirigami
|
||||
import org.kde.kirigamiaddons.settings 1.0 as KirigamiSettings
|
||||
import QtQuick.Layouts 1.15
|
||||
|
||||
import org.kde.neochat 1.0
|
||||
|
||||
KirigamiSettings.CategorizedSettings {
|
||||
id: settingsPage
|
||||
|
||||
required property var connection
|
||||
required property NeoChatConnection connection
|
||||
|
||||
objectName: "settingsPage"
|
||||
actions: [
|
||||
|
||||
Reference in New Issue
Block a user