diff -r 35368b604b28 -r 6727c5d0afc7 screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsroledanalogclockcontainer.cpp --- a/screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsroledanalogclockcontainer.cpp Thu Sep 02 20:17:27 2010 +0300 +++ b/screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsroledanalogclockcontainer.cpp Fri Sep 17 08:27:54 2010 +0300 @@ -95,8 +95,6 @@ mDestPosition = randomPosition( containerRect ); mInitialize = true; } - // the active area of power save mode needs to be updated when clock container is moved - emit activeAreaMoved(); } } @@ -111,15 +109,10 @@ mOledClockWidget->tick(); // date - if (mCurrentOrientation == Qt::Vertical) { - mDateLabel->setPlainText( - HbExtendedLocale().format(QDate::currentDate(), gDateFormatVerticalStr) - ); - } else { - mDateLabel->setPlainText( - HbExtendedLocale().format(QDate::currentDate(), gDateFormatHorizontalStr) - ); - } + const char *dateFormat = (mCurrentOrientation == Qt::Vertical) ? + gDateFormatVerticalStr : gDateFormatHorizontalStr; + QString dateText = HbExtendedLocale().format( QDate::currentDate(), dateFormat ); + mDateLabel->setPlainText( dateText ); // position updatePosition(); @@ -133,6 +126,14 @@ } /*! + @copydoc Screensaver::DisplayPowerMode() + */ +Screensaver::ScreenPowerMode SnsrOledAnalogClockContainer::displayPowerMode() +{ + return Screensaver::ScreenModeLowPower; +} + +/*! @copydoc SnsrBigClockContainer::getActiveScreenRows() */ void SnsrOledAnalogClockContainer::getActiveScreenRows(int *firstActiveRow, int *lastActiveRow) @@ -171,6 +172,7 @@ mOledClockWidget = 0; mDateLabel = 0; mIndicatorWidget = 0; + mInitialize = false; // load widgets from docml qDebug() << gOledAnalogLayoutDocml; @@ -200,8 +202,12 @@ } mIndicatorWidget->setLayoutType(SnsrIndicatorWidget::IndicatorsCentered); + mIndicatorWidget->setPowerSaveModeColor(true); initIndicatorWidget(); - + + // powersave mode color + mDateLabel->setTextColor(Qt::white); + mBackgroundContainerLayout->addItem(mMainView); } }