set current sizes on state change

This commit is contained in:
Marco Martin 2013-05-09 14:08:43 +02:00
parent 1d6382d48c
commit 4c76e033a4
2 changed files with 20 additions and 0 deletions

View File

@ -71,6 +71,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges {
target: root
prefix: "north"
height: root.implicitHeight
}
AnchorChanges {
target: root
@ -114,6 +115,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges {
target: root
prefix: "south"
height: root.implicitHeight
}
AnchorChanges {
target: root
@ -157,6 +159,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges {
target: root
prefix: "west"
width: root.implicitWidth
}
AnchorChanges {
target: root
@ -200,6 +203,7 @@ PlasmaCore.FrameSvgItem {
PropertyChanges {
target: root
prefix: "east"
width: root.implicitWidth
}
AnchorChanges {
target: root

View File

@ -64,6 +64,10 @@ Item {
states: [
State {
name: "TopEdge"
PropertyChanges {
target: root
height: root.implicitHeight
}
AnchorChanges {
target: root
anchors {
@ -76,6 +80,10 @@ Item {
},
State {
name: "BottomEdge"
PropertyChanges {
target: root
height: root.implicitHeight
}
AnchorChanges {
target: root
anchors {
@ -88,6 +96,10 @@ Item {
},
State {
name: "LeftEdge"
PropertyChanges {
target: root
width: root.implicitWidth
}
AnchorChanges {
target: root
anchors {
@ -100,6 +112,10 @@ Item {
},
State {
name: "RightEdge"
PropertyChanges {
target: root
width: root.implicitWidth
}
AnchorChanges {
target: root
anchors {