mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
pass the numeric value
This commit is contained in:
parent
4c5b640b1a
commit
1eb22f4fc7
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue