From 2c43dbb207edbd4106ebd7166af36368bb2e2024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Wed, 21 Sep 2022 10:30:21 +0200 Subject: [PATCH] feat(StatusMessage): add 'hideMessage' property to allow hiding main message text (#916) --- src/StatusQ/Components/StatusMessage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusMessage.qml b/src/StatusQ/Components/StatusMessage.qml index d23c287c..112336bb 100644 --- a/src/StatusQ/Components/StatusMessage.qml +++ b/src/StatusQ/Components/StatusMessage.qml @@ -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"