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

Mike Fenton mike at staikos.net
Wed Dec 10 14:48:43 CET 2008


SVN commit 895333 by fenton:

Switch axis label backgrounds to transparent.


 M  +4 -4      plotitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #895332:895333
@@ -1537,7 +1537,7 @@
   if (parsed) {
     QRectF leftLabel = leftLabelRect(false);
     QPixmap pixmap(leftLabel.height(), leftLabel.width());
-    pixmap.fill(Qt::white);
+    pixmap.fill(Qt::transparent);
     QPainter pixmapPainter(&pixmap);
 
     Label::RenderContext rc(calculatedLeftLabelFont(), &pixmapPainter);
@@ -1613,7 +1613,7 @@
 
     QRectF bottomLabel = bottomLabelRect(false);
     QPixmap pixmap(bottomLabel.width(), bottomLabel.height());
-    pixmap.fill(Qt::white);
+    pixmap.fill(Qt::transparent);
     QPainter pixmapPainter(&pixmap);
 
     Label::RenderContext rc(calculatedBottomLabelFont(), &pixmapPainter);
@@ -1677,7 +1677,7 @@
     QRectF rightLabel = rightLabelRect(false);
     if (rightLabel.isValid()) {
       QPixmap pixmap(rightLabel.height(), rightLabel.width());
-      pixmap.fill(Qt::white);
+      pixmap.fill(Qt::transparent);
       QPainter pixmapPainter(&pixmap);
 
       Label::RenderContext rc(calculatedRightLabelFont(), &pixmapPainter);
@@ -1755,7 +1755,7 @@
     QRectF topLabel = topLabelRect(false);
     if (topLabel.isValid()) {
       QPixmap pixmap(topLabel.width(), topLabel.height());
-      pixmap.fill(Qt::white);
+      pixmap.fill(Qt::transparent);
       QPainter pixmapPainter(&pixmap);
 
       Label::RenderContext rc(calculatedTopLabelFont(), &pixmapPainter);


More information about the Kst mailing list