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
launcher: Enable scrolling for the GridView to display more apps
[apps/launcher.git]
/
launcher
/
src
/
main.cpp
diff --git
a/launcher/src/main.cpp
b/launcher/src/main.cpp
index
563e883
..
77dee27
100644
(file)
--- a/
launcher/src/main.cpp
+++ b/
launcher/src/main.cpp
@@
-44,7
+44,9
@@
int main(int argc, char *argv[])
// mail.qml loading
QQmlApplicationEngine engine;
// mail.qml loading
QQmlApplicationEngine engine;
+ int apps = homescreenHandler->getRunnablesCount();
engine.rootContext()->setContextProperty(QStringLiteral("homescreenHandler"), homescreenHandler);
engine.rootContext()->setContextProperty(QStringLiteral("homescreenHandler"), homescreenHandler);
+ engine.rootContext()->setContextProperty(QStringLiteral("apps_len"), apps);
engine.load(QUrl(QStringLiteral("qrc:/Launcher.qml")));
homescreenHandler->getRunnables();
engine.load(QUrl(QStringLiteral("qrc:/Launcher.qml")));
homescreenHandler->getRunnables();