This commit is contained in:
Aaron Seigo 2014-09-29 21:02:07 +02:00
parent 852b42452d
commit ff07551373
3 changed files with 6 additions and 5 deletions

View file

@ -27,8 +27,8 @@ Item {
}
onPressAndHold: {
if (longHold.visible) {
addNumber(longHold.text);
if (parent.sub.length > 0) {
addNumber(parent.sub);
} else {
addNumber(parent.text);
}

View file

@ -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);
}

View file

@ -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"