From 1eb22f4fc75dfa41eeae8710890dd9a45d16f6fd Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 19 Aug 2014 18:03:47 +0200 Subject: [PATCH] pass the numeric value --- look-and-feel/contents/lockscreen/LockKey.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockKey.qml b/look-and-feel/contents/lockscreen/LockKey.qml index 31e855d9..a86044ac 100644 --- a/look-and-feel/contents/lockscreen/LockKey.qml +++ b/look-and-feel/contents/lockscreen/LockKey.qml @@ -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); } } }