aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/applicationmodel.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2017-12-13 17:32:05 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-12-16 13:04:16 +0000
commitcde2d3b03acd25b49d4d1606877bdec051f9f638 (patch)
tree0a4bbe84bb25a570cb08bdc3b9831a05206534b1 /homescreen/src/applicationmodel.cpp
parentdbfb495b42e826fe9fc1c08b02ebd003f2e2019b (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. Bug-AGL: SPEC-673 Change-Id: I928537bd61f655107393890166260b7446a16a97 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com> (cherry picked from commit 242e1fcf1e76dc8ad94c0391649fd3ab84e64803)
Diffstat (limited to 'homescreen/src/applicationmodel.cpp')
-rw-r--r--homescreen/src/applicationmodel.cpp6
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;
}
}