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: { onPressAndHold: {
if (longHold.visible) { if (parent.sub.length > 0) {
addNumber(longHold.text); addNumber(parent.sub);
} else { } else {
addNumber(parent.text); addNumber(parent.text);
} }

View file

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

View file

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