diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-07-28 20:05:47 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-08-25 19:03:15 +0200 |
commit | 718a58d388abd228c6a08f9fa3365588c06923ba (patch) | |
tree | dab9877a7bd16fd291fcd16262d868cf87469c67 /resources/qml/delegates/Redacted.qml | |
parent | Port redacted messages (diff) | |
download | nheko-718a58d388abd228c6a08f9fa3365588c06923ba.tar.xz |
Get rid of redundant constructions and make room implicit
Diffstat (limited to 'resources/qml/delegates/Redacted.qml')
-rw-r--r-- | resources/qml/delegates/Redacted.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/qml/delegates/Redacted.qml b/resources/qml/delegates/Redacted.qml index a09e4c3f..1bb3209f 100644 --- a/resources/qml/delegates/Redacted.qml +++ b/resources/qml/delegates/Redacted.qml @@ -2,10 +2,10 @@ // // SPDX-License-Identifier: GPL-3.0-or-later -import QtQuick 2.15 -import QtQuick.Controls 2.15 -import QtQuick.Layouts 1.15 -import im.nheko 1.0 +import QtQuick +import QtQuick.Controls +import QtQuick.Layouts +import im.nheko Control { id: msgRoot @@ -14,6 +14,7 @@ Control { property bool fitsMetadata: false //parent.width - redactedLayout.width > metadataWidth + 4 required property string eventId + required property Room room contentItem: RowLayout { id: redactedLayout |