diff --git a/containments/taskpanel/package/contents/ui/Task.qml b/containments/taskpanel/package/contents/ui/Task.qml index eb43bc10..dd62a86f 100644 --- a/containments/taskpanel/package/contents/ui/Task.qml +++ b/containments/taskpanel/package/contents/ui/Task.qml @@ -33,20 +33,7 @@ Item { fill: parent margins: units.gridUnit } - PlasmaComponents.ToolButton { - z: 99 - iconSource: "window-close" - flat: false - anchors { - top: parent.top - right: parent.right - margins: -units.gridUnit/2 - } - onClicked: { - slideAnim.to = -background.width*2; - slideAnim.running = true; - } - } + SequentialAnimation { id: slideAnim property alias to: internalSlideAnim.to @@ -67,7 +54,21 @@ Item { } Rectangle { id: background - + + PlasmaComponents.ToolButton { + z: 99 + iconSource: "window-close" + flat: false + anchors { + top: parent.top + right: parent.right + margins: -units.gridUnit/2 + } + onClicked: { + slideAnim.to = -background.width*2; + slideAnim.running = true; + } + } width: parent.width height: parent.height radius: units.gridUnit