equal
deleted
inserted
replaced
29 #include "hswidgethost.h" |
29 #include "hswidgethost.h" |
30 #include "hswallpaper.h" |
30 #include "hswallpaper.h" |
31 #include "hstrashbinwidget.h" |
31 #include "hstrashbinwidget.h" |
32 #include "hspageindicator.h" |
32 #include "hspageindicator.h" |
33 #include "hsdocumentloader.h" |
33 #include "hsdocumentloader.h" |
34 #include "hshomescreenstatecommon.h" |
34 #include "hsconfiguration.h" |
35 |
35 |
36 namespace |
36 namespace |
37 { |
37 { |
38 const char gControlLayerDocmlName[] = "controllayer.docml"; |
38 const char gControlLayerDocmlName[] = "controllayer.docml"; |
39 const char gControlLayerName[] = "controlLayer"; |
39 const char gControlLayerName[] = "controlLayer"; |
109 void HsIdleWidget::setGeometry(const QRectF &rect) |
109 void HsIdleWidget::setGeometry(const QRectF &rect) |
110 { |
110 { |
111 int n = HsScene::instance()->pages().count(); |
111 int n = HsScene::instance()->pages().count(); |
112 mControlLayer->resize(rect.size()); |
112 mControlLayer->resize(rect.size()); |
113 mPageLayer->resize(n * rect.width(), rect.height()); |
113 mPageLayer->resize(n * rect.width(), rect.height()); |
114 mSceneLayer->resize(2 * rect.width() + HSBOUNDARYEFFECT, rect.height()); |
114 mSceneLayer->resize(2 * rect.width() + HsConfiguration::bounceEffect(), rect.height()); |
115 HbWidget::setGeometry(rect); |
115 HbWidget::setGeometry(rect); |
116 } |
116 } |
117 |
117 |
118 /*! |
118 /*! |
119 Stores the given mouse press \a event. |
119 Stores the given mouse press \a event. |