sync sizes also on the other way

wilder-5.14
Marco Martin 13 years ago
parent c4bb009c05
commit 77d91a4304
  1. 4
      applets/testcomponentsapplet/contents/ui/DialogsPage.qml
  2. 12
      qmlpackages/desktop/contents/ui/CompactApplet.qml

@ -83,10 +83,10 @@ PlasmaComponents.Page {
PlasmaCore.Dialog {
id: pcDialog
windowFlags: Qt.Popup
mainItem: dContent2
//mainItem: dContent2
color: Qt.rgba(0,0,0,0)
DialogContent {
mainItem: DialogContent {
id: dContent2
onCloseMe: pcDialog.visible = false
}

@ -49,14 +49,12 @@ Item {
plasmoid.expanded = false
}
}
//onWidthChanged: appletParent.width = width
//onHeightChanged:appletParent.height = height
mainItem: appletParent
Rectangle {
mainItem: Rectangle {
id: appletParent
radius: 10
width: 200//applet.implicitWidth
height: 200//applet.implicitHeight
radius: 5
width: applet && applet.implicitWidth > 0 ? applet.implicitWidth : theme.defaultFont.mSize.width * 35
height: applet && applet.implicitHeight > 0 ? applet.implicitHeight : theme.defaultFont.mSize.height * 25
onWidthChanged: applet.width = width
onHeightChanged: applet.height = height
}

Loading…
Cancel
Save