src/hbcore/primitives/hbprogresstrackitem.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 3 11d3954df52a
--- a/src/hbcore/primitives/hbprogresstrackitem.cpp	Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbcore/primitives/hbprogresstrackitem.cpp	Mon May 03 12:48:33 2010 +0300
@@ -113,14 +113,9 @@
         }
     }
 
-	QPixmap mask(size);
-    mask.fill(Qt::white);
-    QPainter p;
-    p.begin(&mask);
-    p.setBrush(QBrush(Qt::black));
-	p.drawRect(maskRect);
-	p.end();
-	frameDrawer().setMask(mask);                   
+	QPainterPath path;
+	path.addRect(maskRect);
+	frameDrawer().setClipPath(path);         
     HbFrameItem::paint(painter,option,widget);
 }