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 2.6
import QtQuick.Layouts 1.2 import QtQuick.Layouts 1.2
Rectangle { Item {
color: "transparent"
height: row.height + 24 height: row.height + 24
width: parent ? parent.width : undefined width: parent ? parent.width : undefined

View file

@ -3,7 +3,7 @@ import QtQuick.Controls 2.3
import QtQuick.Layouts 1.2 import QtQuick.Layouts 1.2
import QtQuick.Window 2.2 import QtQuick.Window 2.2
Rectangle { Item {
id: replyComponent id: replyComponent
property alias modelData: reply.modelData property alias modelData: reply.modelData
@ -54,8 +54,6 @@ Rectangle {
} }
} }
color: "transparent"
Rectangle { Rectangle {
id: backgroundItem id: backgroundItem
z: -1 z: -1