[aurorae] Set drawBackground property to false on visual parent
Small hint for the previewer that it shouldn't draw the background.
This commit is contained in:
parent
0778434f85
commit
f94b4bec0b
1 changed files with 1 additions and 0 deletions
|
@ -273,6 +273,7 @@ void Decoration::init()
|
||||||
QVariant visualParent = property("visualParent");
|
QVariant visualParent = property("visualParent");
|
||||||
if (visualParent.isValid()) {
|
if (visualParent.isValid()) {
|
||||||
m_item->setParentItem(visualParent.value<QQuickItem*>());
|
m_item->setParentItem(visualParent.value<QQuickItem*>());
|
||||||
|
visualParent.value<QQuickItem*>()->setProperty("drawBackground", false);
|
||||||
} else {
|
} else {
|
||||||
// we need a QQuickWindow till we depend on Qt 5.4
|
// we need a QQuickWindow till we depend on Qt 5.4
|
||||||
m_decorationWindow.reset(QWindow::fromWinId(client()->decorationId()));
|
m_decorationWindow.reset(QWindow::fromWinId(client()->decorationId()));
|
||||||
|
|
Loading…
Reference in a new issue