[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Fri May 27 22:08:32 CEST 2011


SVN commit 1233808 by netterfield:

BUG: 255274

View Items are transparent during a drag so you can see where you are putting them.



 M  +1 -1      plotitem.cpp  
 M  +4 -1      viewitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #1233807:1233808
@@ -1410,7 +1410,7 @@
     p.setY(p.y() - superscript_raise * painter->fontMetrics().height());
     painter->save();
     QFont f = painter->font();
-    f.setPointSizeF(f.pointSizeF()*superscript_scale); // FIXME
+    f.setPointSizeF(f.pointSizeF()*superscript_scale);
     painter->setFont(f);
     painter->drawText(p,base_mantisa[1]);
     p.setX(p.x() + painter->fontMetrics().width(base_mantisa[1]));
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1233807:1233808
@@ -1002,9 +1002,12 @@
   painter.translate(-rect().left(), -rect().top());
 
   painter.setPen(pen());
-  painter.setBrush(brush());
+  //painter.setBrush(brush());
 
+  QBrush brush_hold = brush();
+  setBrush(Qt::NoBrush);
   paint(&painter);
+  setBrush(brush_hold);
 
   // TODO also paint annotations
   QList<QGraphicsItem*> children = childItems();


More information about the Kst mailing list