From 718a58d388abd228c6a08f9fa3365588c06923ba Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 28 Jul 2023 20:05:47 +0200 Subject: Get rid of redundant constructions and make room implicit --- resources/qml/delegates/Redacted.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'resources/qml/delegates/Redacted.qml') 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 -- cgit 1.5.1