Commit d30863f9 authored by Marco Martin's avatar Marco Martin

slide close button too

parent c550879f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment