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
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user