Use Item for transparent rectangles

This commit is contained in:
Nicolas Werner 2020-04-09 00:10:08 +02:00
parent d68b24188f
commit 537cc966cc
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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