@@ -35,6 +35,7 @@ ApplicationManager::ApplicationManager(QObject *parent)
35 , m_mainStage(0)
35 , m_mainStage(0)
36 , m_sideStageComponent(0)
36 , m_sideStageComponent(0)
37 , m_sideStage(0)
37 , m_sideStage(0)
39 buildListOfAvailableApplications();
40 buildListOfAvailableApplications();
@@ -336,10 +337,12 @@ void ApplicationManager::generateQmlStrings(ApplicationInfo *application)
336 "Image {\n"
337 "Image {\n"
337 " anchors.fill: parent\n"
338 " anchors.fill: parent\n"
338 " anchors.topMargin: %1\n"
339 " anchors.topMargin: %1\n"
340+ " anchors.rightMargin: %2\n"
339− " source: \"file://%2/Dash/graphics/phone/screenshots/%3.png\"\n"
341+ " source: \"file://%3/Dash/graphics/phone/screenshots/%4.png\"\n"
340 " smooth: true\n"
342 " smooth: true\n"
341 " fillMode: Image.PreserveAspectCrop\n"
343 " fillMode: Image.PreserveAspectCrop\n"
342 "}").arg(topMargin)
344 "}").arg(topMargin)
343 .arg(qmlDirectory())
346 .arg(qmlDirectory())
344 .arg(application->icon().toString());
347 .arg(application->icon().toString());
345 application->setWindowQml(windowQml);
348 application->setWindowQml(windowQml);
@@ -568,3 +571,25 @@ void ApplicationManager::createSideStage()
568 m_sideStage->setParentItem(shell);
571 m_sideStage->setParentItem(shell);
569 m_sideStage->setFlag(QQuickItem::ItemHasContents, false);
572 m_sideStage->setFlag(QQuickItem::ItemHasContents, false);
575+QStringList ApplicationManager::availableApplications()
578+ Q_FOREACH(ApplicationInfo *app, m_availableApplications) {
579+ appIds << app->appId();
584+int ApplicationManager::rightMargin() const
586+ return m_rightMargin;
589+void ApplicationManager::setRightMargin(int rightMargin)
591+ m_rightMargin = rightMargin;
592+ Q_FOREACH(ApplicationInfo *app, m_availableApplications) {
593+ generateQmlStrings(app);