move mouse area to the stripe

This commit is contained in:
Aaron Seigo 2014-08-19 18:09:43 +02:00
parent 1eb22f4fc7
commit 0f10ba3e42
2 changed files with 10 additions and 10 deletions

View file

@ -9,14 +9,4 @@ PlasmaCore.SvgItem {
height: parent.height
svg: symbolsSvg
MouseArea {
anchors.fill: parent
onPressed: {
stripe.lockKeyPressed(value);
}
onReleased: {
stripe.lockKeyReleased(value);
}
}
}

View file

@ -38,6 +38,16 @@ Leaves {
}
}
MouseArea {
anchors.fill: parent
onPressed: {
stripe.lockKeyPressed(stripe.childAt(mouseX, mouseY).value);
}
onReleased: {
stripe.lockKeyReleased(stripe.childAt(mouseX, mouseY).value);
}
}
Timer {
id: hideTimer
interval: 1000