diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-12-17 10:21:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2017-12-17 10:21:45 +0000 |
commit | b3c1614cca02e9721e5ab2391b877144f52238ba (patch) | |
tree | c7ec734422f913d7966028f24b7383aca02018ed /homescreen/src/applicationmodel.cpp | |
parent | 92f4c00029fa155b8f490d72f4134dec1f83c157 (diff) | |
parent | cde2d3b03acd25b49d4d1606877bdec051f9f638 (diff) |
Merge "Display a blank icon with first letter when icon is not exist" into eel
Diffstat (limited to 'homescreen/src/applicationmodel.cpp')
-rw-r--r-- | homescreen/src/applicationmodel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/homescreen/src/applicationmodel.cpp b/homescreen/src/applicationmodel.cpp index f01df06..8837ba9 100644 --- a/homescreen/src/applicationmodel.cpp +++ b/homescreen/src/applicationmodel.cpp @@ -48,6 +48,12 @@ namespace { } else { icon[0] = icon[0].toUpper(); } + + if ( !QFile::exists(QString(":/images/HMI_AppLauncher_%1_Active-01.png").arg(icon)) || + !QFile::exists(QString(":/images/HMI_AppLauncher_%1_Inactive-01.png").arg(icon)) ) + { + icon = "Blank"; + } return icon; } } |