X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Flayouthandler.cpp;h=65e019489eb16218c2084d24a49d9a60c269186c;hb=824bfd42b0105b0aeffbc33a87285578abda2f3b;hp=a4d0f9155c4003345d6adfbd56bf0a2321847680;hpb=0e6231b8e8ad1f9ce2ecaada9c51fa3802a36a09;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/layouthandler.cpp b/HomeScreen/src/layouthandler.cpp index a4d0f91..65e0194 100644 --- a/HomeScreen/src/layouthandler.cpp +++ b/HomeScreen/src/layouthandler.cpp @@ -31,14 +31,14 @@ LayoutHandler::~LayoutHandler() delete mp_dBusWindowManagerProxy; } -void LayoutHandler::setUpLayers() +void LayoutHandler::setUpLayouts() { - qDebug("setUpLayers"); + qDebug("setUpLayouts"); QList surfaceAreas; SimpleRect surfaceArea; const int SCREEN_WIDTH = 1080; - const int SCREEN_HEIGHT = 1080; + const int SCREEN_HEIGHT = 1920; const int STATUSBAR_HEIGHT = 60; const int STATUSBAR_WIDTH = SCREEN_WIDTH; @@ -77,7 +77,7 @@ void LayoutHandler::setUpLayers() // bottom surface surfaceArea.x = 0; - surfaceArea.y = STATUSBAR_HEIGHT / 2; + surfaceArea.y = SCREEN_HEIGHT / 2; surfaceArea.width = SCREEN_WIDTH; surfaceArea.height = (SCREEN_HEIGHT - STATUSBAR_HEIGHT - CONTROLBAR_HEIGHT) / 2; @@ -133,7 +133,7 @@ void LayoutHandler::makeMeVisible(int pid) for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } } if (1 == availableLayouts.size()) @@ -146,7 +146,7 @@ void LayoutHandler::makeMeVisible(int pid) mp_dBusWindowManagerProxy->setLayoutById(availableLayouts.at(0)); for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } } if (1 < availableLayouts.size()) @@ -175,6 +175,6 @@ void LayoutHandler::setLayoutByName(QString layoutName) mp_dBusWindowManagerProxy->setLayoutByName(layoutName); for (int i = 0; i < m_visibleApps.size(); ++i) { - mp_dBusWindowManagerProxy->setSurfaceToLayoutArea(i, i); + mp_dBusWindowManagerProxy->setPidToLayoutArea(i, i); } }