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

View File

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