Re-add pending event indicator
This seems to have been accidentally removed BUG: 491277
This commit is contained in:
@@ -74,6 +74,8 @@ QQC2.Control {
|
|||||||
*/
|
*/
|
||||||
property real maxContentWidth: -1
|
property real maxContentWidth: -1
|
||||||
|
|
||||||
|
required property bool isPending
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The reply has been clicked.
|
* @brief The reply has been clicked.
|
||||||
*/
|
*/
|
||||||
@@ -89,7 +91,14 @@ QQC2.Control {
|
|||||||
*/
|
*/
|
||||||
signal showMessageMenu
|
signal showMessageMenu
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: RowLayout {
|
||||||
|
Kirigami.Icon {
|
||||||
|
source: "content-loading-symbolic"
|
||||||
|
Layout.preferredWidth: Kirigami.Units.iconSizes.small
|
||||||
|
Layout.preferredHeight: Kirigami.Units.iconSizes.small
|
||||||
|
visible: root.isPending && NeoChatConfig.showLocalMessagesOnRight
|
||||||
|
}
|
||||||
|
ColumnLayout {
|
||||||
id: contentColumn
|
id: contentColumn
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
Repeater {
|
Repeater {
|
||||||
@@ -113,6 +122,13 @@ QQC2.Control {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Kirigami.Icon {
|
||||||
|
source: "content-loading-symbolic"
|
||||||
|
Layout.preferredWidth: Kirigami.Units.iconSizes.small
|
||||||
|
Layout.preferredHeight: Kirigami.Units.iconSizes.small
|
||||||
|
visible: root.isPending && !NeoChatConfig.showLocalMessagesOnRight
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
background: Kirigami.ShadowedRectangle {
|
background: Kirigami.ShadowedRectangle {
|
||||||
id: bubbleBackground
|
id: bubbleBackground
|
||||||
|
|||||||
@@ -288,6 +288,8 @@ TimelineDelegate {
|
|||||||
|
|
||||||
showHighlight: root.showHighlight
|
showHighlight: root.showHighlight
|
||||||
|
|
||||||
|
isPending: root.isPending
|
||||||
|
|
||||||
onReplyClicked: eventId => {
|
onReplyClicked: eventId => {
|
||||||
root.replyClicked(eventId);
|
root.replyClicked(eventId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user