Code Review
/
apps
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix short height of background image
[apps/launcher.git]
/
launcher
/
src
/
applicationmodel.cpp
diff --git
a/launcher/src/applicationmodel.cpp
b/launcher/src/applicationmodel.cpp
index
90f81de
..
14e2ea1
100644
(file)
--- a/
launcher/src/applicationmodel.cpp
+++ b/
launcher/src/applicationmodel.cpp
@@
-60,8
+60,10
@@
ApplicationModel::Private::Private()
auto const id = jso["id"].toString();
auto const icon = get_icon_name(jso);
auto const id = jso["id"].toString();
auto const icon = get_icon_name(jso);
- // Hide HomeScreen icon itself
- if (name != "launcher" && name != "homescreen-2017" && name != "OnScreenApp") {
+ if ( name != "launcher" &&
+ name != "homescreen-2017" &&
+ name != "homescreen" &&
+ name != "OnScreenApp") {
this->data.append(AppInfo(icon, name, id));
}
this->data.append(AppInfo(icon, name, id));
}
@@
-125,6
+127,12
@@
QString ApplicationModel::id(int i) const
return data(index(i), Qt::UserRole).toString();
}
return data(index(i), Qt::UserRole).toString();
}
+QString ApplicationModel::appid(int i) const
+{
+ QString id = data(index(i), Qt::UserRole).toString();
+ return id.split("@")[0];
+}
+
QString ApplicationModel::name(int i) const
{
return data(index(i), Qt::DisplayRole).toString();
QString ApplicationModel::name(int i) const
{
return data(index(i), Qt::DisplayRole).toString();