screensaver/screensaverplugins/snsrbigclockscreensaverplugin/src/snsrbigclockcontainer.cpp
equal
deleted
inserted
replaced
34 \class SnsrBigClockContainer |
34 \class SnsrBigClockContainer |
35 \ingroup group_snsrbigclockscreensaverplugin |
35 \ingroup group_snsrbigclockscreensaverplugin |
36 \brief Base class. Container used for drawing background and for preparing layout. |
36 \brief Base class. Container used for drawing background and for preparing layout. |
37 */ |
37 */ |
38 |
38 |
39 const QString snsrBackgroundColorRole("snsrbackground"); |
39 |
|
40 |
40 const int gStep(5); |
41 const int gStep(5); |
41 |
42 |
42 |
43 |
43 /*! |
44 /*! |
44 Constructs a new SnsrBigClockContainer. |
45 Constructs a new SnsrBigClockContainer. |
112 This method should be called when the current container is set. |
113 This method should be called when the current container is set. |
113 */ |
114 */ |
114 void SnsrBigClockContainer::setIndicatorModel(SnsrIndicatorModel &model) |
115 void SnsrBigClockContainer::setIndicatorModel(SnsrIndicatorModel &model) |
115 { |
116 { |
116 mIndicatorModel = &model; |
117 mIndicatorModel = &model; |
|
118 } |
|
119 |
|
120 /*! |
|
121 @copydoc Screensaver::currentPowerMode() |
|
122 */ |
|
123 Screensaver::ScreenPowerMode SnsrBigClockContainer::displayPowerMode() |
|
124 { |
|
125 // The default implementation returns full power mode. Inherited classes |
|
126 // must override this if low power or display off mode are required. |
|
127 return Screensaver::ScreenModeFullPower; |
117 } |
128 } |
118 |
129 |
119 /*! |
130 /*! |
120 @copydoc Screensaver::getActiveScreenRows() |
131 @copydoc Screensaver::getActiveScreenRows() |
121 */ |
132 */ |
316 /*! |
327 /*! |
317 Set background color. |
328 Set background color. |
318 */ |
329 */ |
319 void SnsrBigClockContainer::setBackgroundColor() |
330 void SnsrBigClockContainer::setBackgroundColor() |
320 { |
331 { |
321 QColor backgroundColor = HbColorScheme::color(snsrBackgroundColorRole); |
332 mBackgroundColor = Qt::black; |
322 if (backgroundColor.isValid()) { |
|
323 mBackgroundColor = backgroundColor; |
|
324 } |
|
325 else { |
|
326 mBackgroundColor = Qt::black; |
|
327 } |
|
328 } |
333 } |
329 |
334 |
330 /*! |
335 /*! |
331 Paints the contents of an item in local coordinates. |
336 Paints the contents of an item in local coordinates. |
332 */ |
337 */ |