From a051a4ae8dbbe5c414aedb87134e8321e564d32f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 20 Feb 2013 15:18:58 +0100 Subject: [PATCH] make sure a transparent window --- .../desktop/contents/ui/CompactApplet.qml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/qmlpackages/desktop/contents/ui/CompactApplet.qml b/qmlpackages/desktop/contents/ui/CompactApplet.qml index 775a3895b..57a255ac2 100644 --- a/qmlpackages/desktop/contents/ui/CompactApplet.qml +++ b/qmlpackages/desktop/contents/ui/CompactApplet.qml @@ -36,20 +36,25 @@ Item { } - Window { + PlasmaCore.Dialog { id: popupWindow + //windowFlags: Qt.Popup + color: Qt.rgba(0,0,0,0) visible: plasmoid.expanded onVisibleChanged: { if (!visible) { plasmoid.expanded = false } } - width: 200 - height: 200 - Item { + onWidthChanged: appletParent.width = width + onHeightChanged:appletParent.height = height + mainItem: appletParent + Rectangle { id: appletParent - width: applet.implicitWidth - height: applet.implicitHeight + width: 200//applet.implicitWidth + height: 200//applet.implicitHeight + onWidthChanged: applet.width = width + onHeightChanged: applet.height = height } } }