diff -r 474929a40a0f -r 87476091b3f5 homescreenapp/hsdomainmodel/src/hswallpaper.cpp --- a/homescreenapp/hsdomainmodel/src/hswallpaper.cpp Wed Jul 14 15:53:30 2010 +0300 +++ b/homescreenapp/hsdomainmodel/src/hswallpaper.cpp Fri Jul 23 13:47:57 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; }