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 { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: { onPressed: {
if (stripe.opacity < 1) {
stripe.opacity = 1;
return;
}
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value); stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
} }
onReleased: { onReleased: {
if (stripe.opacity < 1) {
return;
}
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value); stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
} }