X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fqml%2FShortcutIcon.qml;fp=HomeScreen%2Fqml%2FShortcutIcon.qml;h=34ade01f86f409f647eba48d39fd7d4a01f296f7;hb=dd7bb40b885efbde6ca7121194403857ef263208;hp=299f6a8cced6c8ce14a1074bff0112f93fdab4de;hpb=a8414c772521b330d950dedc7f5b25f8ebff6e23;p=staging%2FHomeScreen.git diff --git a/HomeScreen/qml/ShortcutIcon.qml b/HomeScreen/qml/ShortcutIcon.qml index 299f6a8..34ade01 100644 --- a/HomeScreen/qml/ShortcutIcon.qml +++ b/HomeScreen/qml/ShortcutIcon.qml @@ -16,6 +16,7 @@ */ import QtQuick 2.2 +import QtQuick.Controls 1.0 MouseArea { id: root @@ -33,6 +34,16 @@ MouseArea { source: './images/Shortcut/HMI_Shortcut_%1_Active-01.png'.arg(root.name) opacity: 1.0 - icon.opacity } + Label { + id: labelName + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + y: 155 + font.pixelSize: 20 + font.family: "Roboto" + color: "white" + text: '%1'.arg(model.label) + } states: [ State { when: root.active