diff -r 2b1b11a301d2 -r 4b195f3bea29 homescreenapp/hsdomainmodel/src/hswallpaper.cpp --- a/homescreenapp/hsdomainmodel/src/hswallpaper.cpp Tue Jul 06 14:06:53 2010 +0300 +++ b/homescreenapp/hsdomainmodel/src/hswallpaper.cpp Wed Aug 18 09:40:07 2010 +0300 @@ -28,6 +28,8 @@ #include "hspage.h" #include "hswallpaperloader.h" #include "hsconfiguration.h" +#include "hsgui.h" + /*! \class HsWallpaper @@ -58,7 +60,7 @@ layout->addItem(mIconItem); setLayout(layout); - connect(HsScene::mainWindow(), + connect(HsGui::instance(), SIGNAL(orientationChanged(Qt::Orientation)), SLOT(updateIconItem(Qt::Orientation))); } @@ -110,7 +112,7 @@ mLandscapeImagePath = infos.first().absoluteFilePath(); mPortraitImagePath = infos.last().absoluteFilePath(); - updateIconItem(HsScene::orientation()); + updateIconItem(HsGui::instance()->orientation()); } /*! @@ -150,7 +152,7 @@ mLandscapeImagePath = infos.first().absoluteFilePath(); mPortraitImagePath = infos.last().absoluteFilePath(); - updateIconItem(HsScene::orientation()); + updateIconItem(HsGui::instance()->orientation()); return true; }