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 {
id: square
property int value: 0
anchors.top: parent.top
width: parent.width/4
height: parent.height
@ -12,10 +13,10 @@ PlasmaCore.SvgItem {
MouseArea {
anchors.fill: parent
onPressed: {
stripe.lockKeyPressed(parent.elementId);
stripe.lockKeyPressed(value);
}
onReleased: {
stripe.lockKeyReleased(parent.elementId);
stripe.lockKeyReleased(value);
}
}
}