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
//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
}
}
}

Loading…
Cancel
Save