Commit c550879f authored by Marco Martin's avatar Marco Martin

add a window close button

parent 71219f84
......@@ -33,6 +33,20 @@ 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
......
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