[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Fri Aug 5 19:31:08 CEST 2005


SVN commit 443281 by rchern:

Fix picture placeholder drawing

 M  +2 -2      kstviewpicture.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewpicture.cpp #443280:443281
@@ -55,11 +55,11 @@
   KstBorderedViewObject::paint(type, p);
   if (_image.isNull()) {
     // fill with X
-    p.fillRect(geometry(), Qt::gray);
+    p.setBrush(QBrush(Qt::gray, Qt::SolidPattern)); 
     p.setPen(QPen(Qt::black, 0, Qt::SolidLine));
+    p.drawRect(geometry());
     p.drawLine(geometry().topLeft(), geometry().bottomRight());
     p.drawLine(geometry().topRight(), geometry().bottomLeft());
-    p.drawRect(geometry());
   } else {
     QRect cr = contentsRect();
     if (_iCache.isNull() || _iCache.size() != cr.size()) {


More information about the Kst mailing list