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 { PlasmaCore.Dialog {
id: pcDialog id: pcDialog
windowFlags: Qt.Popup windowFlags: Qt.Popup
mainItem: dContent2 //mainItem: dContent2
color: Qt.rgba(0,0,0,0) color: Qt.rgba(0,0,0,0)
DialogContent { mainItem: DialogContent {
id: dContent2 id: dContent2
onCloseMe: pcDialog.visible = false onCloseMe: pcDialog.visible = false
} }

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

Loading…
Cancel
Save