Improve QML types
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -35,7 +35,7 @@ ColumnLayout {
|
||||
/**
|
||||
* @brief The current room that user is viewing.
|
||||
*/
|
||||
property var currentRoom
|
||||
property NeoChatRoom currentRoom
|
||||
|
||||
/**
|
||||
* @brief The chatBar object
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user