diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-09 00:10:08 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-10 08:48:30 +0200 |
commit | 537cc966ccccd7ff645432e7976db9418556aee5 (patch) | |
tree | c5af13a61ab290dfb74d0d9b2f75b53e7ee040a8 | |
parent | d68b24188fd453bd8ca09e3035edc4faee74c6af (diff) |
Use Item for transparent rectangles
-rw-r--r-- | resources/qml/delegates/FileMessage.qml | 3 | ||||
-rw-r--r-- | 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 |