--- a/homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp Wed Jun 23 18:03:36 2010 +0300
+++ b/homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp Tue Jul 06 14:06:53 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()