homescreenapp/stateplugins/hshomescreenstateplugin/src/hsidlewidget.cpp
changeset 51 4785f57bf3d4
parent 36 cdae8c6c3876
child 55 03646e8da489
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
    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.