[kwin/aurorae] Remove behavior animations on anchors

Looks like this completely broke in Qt. The groups are all placed at
0/0 if there is an animation defined and the complete layout is broken.

The animation is not that useful in fact so no big loss.
This commit is contained in:
Martin Gräßlin 2014-03-12 11:45:46 +01:00
parent e3271ec2e1
commit 4703339ef6
2 changed files with 3 additions and 27 deletions

View file

@ -54,13 +54,7 @@ Item {
createButtons();
}
anchors {
top: parent.top
top: root.top
topMargin: (decoration.maximized ? auroraeTheme.titleEdgeTopMaximized : auroraeTheme.titleEdgeTop + root.padding.top) + auroraeTheme.buttonMarginTop
}
Behavior on anchors.topMargin {
enabled: group.animate
NumberAnimation {
duration: auroraeTheme.animationTime
}
}
}

View file

@ -129,15 +129,9 @@ Decoration {
width: childrenRect.width
animate: root.animate
anchors {
left: parent.left
left: root.left
leftMargin: decoration.maximized ? auroraeTheme.titleEdgeLeftMaximized : (auroraeTheme.titleEdgeLeft + root.padding.left)
}
Behavior on anchors.leftMargin {
enabled: root.animate
NumberAnimation {
duration: auroraeTheme.animationTime
}
}
}
AuroraeButtonGroup {
id: rightButtonGroup
@ -145,15 +139,9 @@ Decoration {
width: childrenRect.width
animate: root.animate
anchors {
right: parent.right
right: root.right
rightMargin: decoration.maximized ? auroraeTheme.titleEdgeRightMaximized : (auroraeTheme.titleEdgeRight + root.padding.right)
}
Behavior on anchors.rightMargin {
enabled: root.animate
NumberAnimation {
duration: auroraeTheme.animationTime
}
}
}
Text {
id: caption
@ -191,12 +179,6 @@ Decoration {
duration: auroraeTheme.animationTime
}
}
Behavior on anchors.topMargin {
enabled: root.animate
NumberAnimation {
duration: auroraeTheme.animationTime
}
}
}
PlasmaCore.FrameSvgItem {
id: innerBorder