X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=launcher%2Fsrc%2Fmain.cpp;h=77dee2736f7c715add27d708c45c18abe5573a31;hb=refs%2Fchanges%2F65%2F27165%2F2;hp=563e88385676cfe85682dda9f8d1cfd70d485f5b;hpb=20cd96660d4bfb44e0be5695f71a92d5fb53a143;p=apps%2Flauncher.git diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index 563e883..77dee27 100644 --- 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; + int apps = homescreenHandler->getRunnablesCount(); engine.rootContext()->setContextProperty(QStringLiteral("homescreenHandler"), homescreenHandler); + engine.rootContext()->setContextProperty(QStringLiteral("apps_len"), apps); engine.load(QUrl(QStringLiteral("qrc:/Launcher.qml"))); homescreenHandler->getRunnables();