homescreenapp/hsdomainmodel/src/hswallpaper.cpp
changeset 77 4b195f3bea29
parent 60 30f14686fb04
child 81 7dd137878ff8
--- 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;
 }