Improve QML types

This commit is contained in:
Tobias Fella
2023-06-06 21:06:58 +02:00
parent 72c85af407
commit 47c28ce9a2
30 changed files with 35 additions and 30 deletions

View File

@@ -36,7 +36,7 @@ QQC2.Control {
/**
* @brief The current room that user is viewing.
*/
property var currentRoom
property NeoChatRoom currentRoom
/**
* @brief The QQC2.TextArea object.

View File

@@ -35,7 +35,7 @@ ColumnLayout {
/**
* @brief The current room that user is viewing.
*/
property var currentRoom
property NeoChatRoom currentRoom
/**
* @brief The chatBar object

View File

@@ -11,10 +11,12 @@ import org.kde.kirigamiaddons.labs.components 1.0 as Components
import org.kde.kirigami 2.15 as Kirigami
import org.kde.neochat 1.0
Components.AbstractMaximizeComponent {
id: root
required property var room
required property NeoChatRoom room
property var location
title: i18n("Choose a Location")

View File

@@ -12,7 +12,7 @@ import org.kde.neochat 1.0
Kirigami.PlaceholderMessage {
id: root
required property var currentRoom
required property NeoChatRoom currentRoom
text: i18n("Accept this invitation?")
RowLayout {
@@ -32,4 +32,4 @@ Kirigami.PlaceholderMessage {
}
}
}
}
}

View File

@@ -89,7 +89,7 @@ QQC2.Dialog {
delegate: Kirigami.BasicListItem {
id: roomListItem
required property var currentRoom
required property NeoChatRoom currentRoom
required property string displayName
required property int index
required property int notificationCount

View File

@@ -11,7 +11,7 @@ import org.kde.neochat 1.0
QQC2.TextArea {
id: root
property var room
property NeoChatRoom room
onRoomChanged: room.chatBoxEditIdChanged.connect(updateEditText)
property string messageId

View File

@@ -15,7 +15,7 @@ import org.kde.neochat 1.0
QQC2.ScrollView {
id: root
required property var currentRoom
required property NeoChatRoom currentRoom
readonly property bool isLoaded: root.width * root.height > 10
readonly property bool atYEnd: messageListView.atYEnd