From d30863f95946c64a55fed4541f47b2af85b02ed7 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 23 Sep 2015 17:46:54 +0200 Subject: [PATCH] slide close button too --- .../taskpanel/package/contents/ui/Task.qml | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) 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