opacity change on stripe touch

This commit is contained in:
Aaron Seigo 2014-08-20 12:12:39 +02:00
parent 21afca51f1
commit 06bde8ab6d

View file

@ -81,10 +81,19 @@ Leaves {
MouseArea {
anchors.fill: parent
onPressed: {
if (stripe.opacity < 1) {
stripe.opacity = 1;
return;
}
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
}
onReleased: {
if (stripe.opacity < 1) {
return;
}
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
}