Restore the show author functionality to bubble
This commit is contained in:
committed by
Tobias Fella
parent
add283c9fb
commit
070d579bc2
@@ -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
|
||||
|
||||
@@ -394,6 +394,7 @@ TimelineDelegate {
|
||||
]
|
||||
|
||||
author: root.author
|
||||
showAuthor: root.showAuthor || root.alwaysShowAuthor
|
||||
time: root.time
|
||||
timeString: root.timeString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user