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