Restore the show author functionality to bubble

This commit is contained in:
James Graham
2023-09-30 20:58:46 +01:00
committed by Tobias Fella
parent add283c9fb
commit 070d579bc2
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ QQC2.Control {
*/
property var author
/**
* @brief Whether the author should be shown.
*/
required property bool showAuthor
/**
* @brief The timestamp of the message.
*/
@@ -133,6 +138,7 @@ QQC2.Control {
contentItem: ColumnLayout {
RowLayout {
Layout.maximumWidth: root.maxContentWidth
visible: root.showAuthor
QQC2.Label {
Layout.fillWidth: true
text: root.author.displayName

View File

@@ -394,6 +394,7 @@ TimelineDelegate {
]
author: root.author
showAuthor: root.showAuthor || root.alwaysShowAuthor
time: root.time
timeString: root.timeString