From 537cc966ccccd7ff645432e7976db9418556aee5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 9 Apr 2020 00:10:08 +0200 Subject: [PATCH] Use Item for transparent rectangles --- resources/qml/delegates/FileMessage.qml | 3 +-- resources/qml/delegates/Reply.qml | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/qml/delegates/FileMessage.qml b/resources/qml/delegates/FileMessage.qml index cb2ae920..d8e4215f 100644 --- a/resources/qml/delegates/FileMessage.qml +++ b/resources/qml/delegates/FileMessage.qml @@ -1,8 +1,7 @@ import QtQuick 2.6 import QtQuick.Layouts 1.2 -Rectangle { - color: "transparent" +Item { height: row.height + 24 width: parent ? parent.width : undefined diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml index c5ac0ca3..1b1be345 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml @@ -3,7 +3,7 @@ import QtQuick.Controls 2.3 import QtQuick.Layouts 1.2 import QtQuick.Window 2.2 -Rectangle { +Item { id: replyComponent property alias modelData: reply.modelData @@ -54,8 +54,6 @@ Rectangle { } } - color: "transparent" - Rectangle { id: backgroundItem z: -1