feat(StatusMessage): add 'hideMessage' property to allow hiding main message text (#916)
This commit is contained in:
parent
060b98a74d
commit
b1d6e73e2f
|
@ -69,6 +69,7 @@ Rectangle {
|
|||
property color overrideBackgroundColor: "transparent"
|
||||
property bool overrideBackground: false
|
||||
property bool profileClickable: true
|
||||
property bool hideMessage: false
|
||||
|
||||
property alias previousMessageIndex: dateGroupLabel.previousMessageIndex
|
||||
property alias previousMessageTimestamp: dateGroupLabel.previousMessageTimestamp
|
||||
|
@ -264,6 +265,7 @@ Rectangle {
|
|||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
spacing: 4
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.fillWidth: true
|
||||
|
@ -292,7 +294,7 @@ Rectangle {
|
|||
}
|
||||
Loader {
|
||||
Layout.fillWidth: true
|
||||
active: !editMode && !!root.messageDetails.messageText
|
||||
active: !root.editMode && !!root.messageDetails.messageText && !root.hideMessage
|
||||
visible: active
|
||||
sourceComponent: StatusTextMessage {
|
||||
objectName: "StatusMessage_textMessage"
|
||||
|
|
Loading…
Reference in New Issue