diff -r 2e2dc3d30ca8 -r 341166945d65 homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp --- a/homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp Thu Jun 24 13:11:40 2010 +0100 +++ b/homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp Fri Jun 25 19:19:22 2010 +0300 @@ -77,6 +77,27 @@ } /*! + Return bounding rect +*/ +QRectF HsAnalogClockWidget::boundingRect() const +{ + QRectF currRect = rect(); + currRect.setHeight(mBackground->iconItemSize().height()); + currRect.setWidth(mBackground->iconItemSize().width()); + return currRect; +} + +/*! + Return shape +*/ +QPainterPath HsAnalogClockWidget::shape() const +{ + QPainterPath path; + path.addEllipse(boundingRect()); + return path; +} + +/*! Updates clock visualization according to current time */ void HsAnalogClockWidget::tick() @@ -149,7 +170,7 @@ return; } - HbInstantFeedback::play(HsConfiguration::clockWidgetTapFeedbackType()); + HbInstantFeedback::play(HSCONFIGURATION_GET(clockWidgetTapFeedbackEffect)); emit clockTapped(); }