diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-12-13 17:32:05 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-12-13 17:32:05 +0900 |
commit | 242e1fcf1e76dc8ad94c0391649fd3ab84e64803 (patch) | |
tree | d631e62c1398564dde103983320a57fdc179beea /homescreen/src | |
parent | 8b03da6d8c07a40c2d65b9cfb40a2fd50c276a2d (diff) |
Display a blank icon with first letter when icon is not exist
Add a new feature, when icon is not exist in homescreen,
display a blank icon with first letter.
Change-Id: I928537bd61f655107393890166260b7446a16a97
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'homescreen/src')
-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; } } |