stripe autohide

This commit is contained in:
Aaron Seigo 2014-08-19 17:54:03 +02:00
parent 353bffc51c
commit 4296d6b648

View file

@ -13,26 +13,29 @@ Leaves {
MouseArea {
anchors.fill: parent
onPressed: {
stripe.visible = true;
stripe.opacity = 1;
}
}
SatelliteStripe {
id: stripe
visible: false
opacity: 0
onVisibleChanged: {
opacity = visible ? 1 : 0;
}
Behavior on opacity {
NumberAnimation {
duration: 300
duration: 500
easing.type: Easing.InOutQuad
}
}
Timer {
id: hideTimer
interval: 1000
running: parent.opacity == 1
onTriggered: parent.opacity = 0
}
PlasmaCore.SvgItem {
id: square
property int value: 1