mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +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: {
|
onPressAndHold: {
|
||||||
if (longHold.visible) {
|
if (parent.sub.length > 0) {
|
||||||
addNumber(longHold.text);
|
addNumber(parent.sub);
|
||||||
} else {
|
} else {
|
||||||
addNumber(parent.text);
|
addNumber(parent.text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ Item {
|
||||||
property string text
|
property string text
|
||||||
property string sub
|
property string sub
|
||||||
property alias svg: icon.svg
|
property alias svg: icon.svg
|
||||||
|
property alias elementId: icon.elementId
|
||||||
|
|
||||||
PlasmaCore.SvgItem{
|
PlasmaCore.SvgItem{
|
||||||
id: icon
|
id: icon
|
||||||
|
|
@ -27,8 +28,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressAndHold: {
|
onPressAndHold: {
|
||||||
if (longHold.visible) {
|
if (parent.sub.length > 0) {
|
||||||
addNumber(longHold.text);
|
addNumber(parent.sub);
|
||||||
} else {
|
} else {
|
||||||
addNumber(parent.text);
|
addNumber(parent.text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,8 @@ MouseArea {
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
id: icon
|
id: icon
|
||||||
width: units.iconSizes.medium
|
width: units.iconSizes.medium
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
height: width
|
height: width
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
x: units.largeSpacing
|
x: units.largeSpacing
|
||||||
y: 0
|
y: 0
|
||||||
source: appIcon && appIcon.length > 0 ? appIcon : "im-user"
|
source: appIcon && appIcon.length > 0 ? appIcon : "im-user"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue