mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
fixups
This commit is contained in:
parent
852b42452d
commit
ff07551373
3 changed files with 6 additions and 5 deletions
|
|
@ -27,8 +27,8 @@ Item {
|
|||
}
|
||||
|
||||
onPressAndHold: {
|
||||
if (longHold.visible) {
|
||||
addNumber(longHold.text);
|
||||
if (parent.sub.length > 0) {
|
||||
addNumber(parent.sub);
|
||||
} else {
|
||||
addNumber(parent.text);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ Item {
|
|||
property string text
|
||||
property string sub
|
||||
property alias svg: icon.svg
|
||||
property alias elementId: icon.elementId
|
||||
|
||||
PlasmaCore.SvgItem{
|
||||
id: icon
|
||||
|
|
@ -27,8 +28,8 @@ Item {
|
|||
}
|
||||
|
||||
onPressAndHold: {
|
||||
if (longHold.visible) {
|
||||
addNumber(longHold.text);
|
||||
if (parent.sub.length > 0) {
|
||||
addNumber(parent.sub);
|
||||
} else {
|
||||
addNumber(parent.text);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ MouseArea {
|
|||
PlasmaCore.IconItem {
|
||||
id: icon
|
||||
width: units.iconSizes.medium
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
height: width
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
x: units.largeSpacing
|
||||
y: 0
|
||||
source: appIcon && appIcon.length > 0 ? appIcon : "im-user"
|
||||
|
|
|
|||
Loading…
Reference in a new issue