make sure a transparent window

wilder-5.14
Marco Martin 13 years ago
parent 9b13355b81
commit a051a4ae8d
  1. 17
      qmlpackages/desktop/contents/ui/CompactApplet.qml

@ -36,20 +36,25 @@ Item {
} }
Window { PlasmaCore.Dialog {
id: popupWindow id: popupWindow
//windowFlags: Qt.Popup
color: Qt.rgba(0,0,0,0)
visible: plasmoid.expanded visible: plasmoid.expanded
onVisibleChanged: { onVisibleChanged: {
if (!visible) { if (!visible) {
plasmoid.expanded = false plasmoid.expanded = false
} }
} }
width: 200 onWidthChanged: appletParent.width = width
height: 200 onHeightChanged:appletParent.height = height
Item { mainItem: appletParent
Rectangle {
id: appletParent id: appletParent
width: applet.implicitWidth width: 200//applet.implicitWidth
height: applet.implicitHeight height: 200//applet.implicitHeight
onWidthChanged: applet.width = width
onHeightChanged: applet.height = height
} }
} }
} }

Loading…
Cancel
Save