pass the numeric value

This commit is contained in:
Aaron Seigo 2014-08-19 18:03:47 +02:00
parent 4c5b640b1a
commit 1eb22f4fc7

View file

@ -4,6 +4,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
PlasmaCore.SvgItem { PlasmaCore.SvgItem {
id: square id: square
property int value: 0 property int value: 0
anchors.top: parent.top
width: parent.width/4 width: parent.width/4
height: parent.height height: parent.height
@ -12,10 +13,10 @@ PlasmaCore.SvgItem {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: { onPressed: {
stripe.lockKeyPressed(parent.elementId); stripe.lockKeyPressed(value);
} }
onReleased: { onReleased: {
stripe.lockKeyReleased(parent.elementId); stripe.lockKeyReleased(value);
} }
} }
} }