homescreenapp/widgetplugins/hsclockwidgetplugin/src/hsanalogclockwidget.cpp
changeset 61 2b1b11a301d2
parent 60 30f14686fb04
child 77 4b195f3bea29
--- 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()