equal
deleted
inserted
replaced
26 #include "hswallpaper.h" |
26 #include "hswallpaper.h" |
27 #include "hsscene.h" |
27 #include "hsscene.h" |
28 #include "hspage.h" |
28 #include "hspage.h" |
29 #include "hswallpaperloader.h" |
29 #include "hswallpaperloader.h" |
30 #include "hsconfiguration.h" |
30 #include "hsconfiguration.h" |
|
31 #include "hsgui.h" |
|
32 |
31 |
33 |
32 /*! |
34 /*! |
33 \class HsWallpaper |
35 \class HsWallpaper |
34 \ingroup group_hsdomainmodel |
36 \ingroup group_hsdomainmodel |
35 \brief |
37 \brief |
56 QGraphicsLinearLayout *layout = new QGraphicsLinearLayout; |
58 QGraphicsLinearLayout *layout = new QGraphicsLinearLayout; |
57 layout->setContentsMargins(0, 0, 0, 0); |
59 layout->setContentsMargins(0, 0, 0, 0); |
58 layout->addItem(mIconItem); |
60 layout->addItem(mIconItem); |
59 setLayout(layout); |
61 setLayout(layout); |
60 |
62 |
61 connect(HsScene::mainWindow(), |
63 connect(HsGui::instance(), |
62 SIGNAL(orientationChanged(Qt::Orientation)), |
64 SIGNAL(orientationChanged(Qt::Orientation)), |
63 SLOT(updateIconItem(Qt::Orientation))); |
65 SLOT(updateIconItem(Qt::Orientation))); |
64 } |
66 } |
65 |
67 |
66 /*! |
68 /*! |
108 |
110 |
109 mIsDefaultImage = true; |
111 mIsDefaultImage = true; |
110 mLandscapeImagePath = infos.first().absoluteFilePath(); |
112 mLandscapeImagePath = infos.first().absoluteFilePath(); |
111 mPortraitImagePath = infos.last().absoluteFilePath(); |
113 mPortraitImagePath = infos.last().absoluteFilePath(); |
112 |
114 |
113 updateIconItem(HsScene::orientation()); |
115 updateIconItem(HsGui::instance()->orientation()); |
114 } |
116 } |
115 |
117 |
116 /*! |
118 /*! |
117 |
119 |
118 */ |
120 */ |
148 |
150 |
149 mIsDefaultImage = false; |
151 mIsDefaultImage = false; |
150 mLandscapeImagePath = infos.first().absoluteFilePath(); |
152 mLandscapeImagePath = infos.first().absoluteFilePath(); |
151 mPortraitImagePath = infos.last().absoluteFilePath(); |
153 mPortraitImagePath = infos.last().absoluteFilePath(); |
152 |
154 |
153 updateIconItem(HsScene::orientation()); |
155 updateIconItem(HsGui::instance()->orientation()); |
154 return true; |
156 return true; |
155 } |
157 } |
156 |
158 |
157 QString HsWallpaper::rootDirectory() const |
159 QString HsWallpaper::rootDirectory() const |
158 { |
160 { |