src/hbcore/primitives/hbprogresstrackitem.cpp
changeset 7 923ff622b8b9
parent 3 11d3954df52a
child 23 e6ad4ef83b23
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
   114                     );
   114                     );
   115             }
   115             }
   116         }
   116         }
   117     }
   117     }
   118 
   118 
   119 	QPainterPath path;
   119 //	QPainterPath path;
   120 	path.addRect(maskRect);
   120 //	path.addRect(maskRect);
   121 	frameDrawer().setClipPath(path);         
   121 //	frameDrawer().setClipPath(path);
       
   122     QPixmap pixmap(boundingRect().size().toSize());
       
   123     pixmap.fill(Qt::white);
       
   124     QPainter painter1;
       
   125     painter1.begin(&pixmap);
       
   126     painter1.setBrush(QBrush(Qt::black));
       
   127     painter1.drawRect(maskRect);
       
   128     painter1.end();
       
   129     frameDrawer().setMask(pixmap);
       
   130 
   122     HbFrameItem::paint(painter,option,widget);
   131     HbFrameItem::paint(painter,option,widget);
   123 }
   132 }
   124 
   133 
   125 
   134