diff -r 35368b604b28 -r 6727c5d0afc7 screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsrdigitalclockcontainer.cpp --- a/screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsrdigitalclockcontainer.cpp Thu Sep 02 20:17:27 2010 +0300 +++ b/screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsrdigitalclockcontainer.cpp Fri Sep 17 08:27:54 2010 +0300 @@ -104,26 +104,25 @@ ); // 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 ); SCREENSAVER_TEST_FUNC_EXIT("SnsrDigitalClockContainer::update") } +/*! + @copydoc SnsrBigClockContainer::updateIntervalInMilliseconds() + */ int SnsrDigitalClockContainer::updateIntervalInMilliseconds() { return 1000; } +/*! + @copydoc SnsrBigClockContainer::loadWidgets() + */ void SnsrDigitalClockContainer::loadWidgets() { // reset widget pointers, any previous widgets are already deleted by now @@ -167,6 +166,7 @@ } mIndicatorWidget->setLayoutType(SnsrIndicatorWidget::IndicatorsCentered); + mIndicatorWidget->setPowerSaveModeColor(false); initIndicatorWidget(); mBackgroundContainerLayout->addItem(mMainView);