slide close button too

This commit is contained in:
Marco Martin 2015-09-23 17:46:54 +02:00
parent c550879fe9
commit d30863f959

View file

@ -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