[Kst] extragear/graphics/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Thu Sep 15 15:11:38 CEST 2005
SVN commit 460838 by netterfield:
Printing transparent labels works better now.
M +4 -0 kstviewlabel.cpp
M +4 -0 kstviewobject.cpp
--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #460837:460838
@@ -295,11 +295,15 @@
void KstViewLabel::paint(KstPaintType type, QPainter& p) {
if (type == P_PRINT) {
+ p.save();
if (_autoResize) {
adjustSizeForText(p.window());
}
+ p.setViewport(geometry());
+ p.setWindow(0,0,geometry().width(), geometry().height());
drawToPainter(_parsed, p);
setDirty();
+ p.restore();
} else {
bool d = dirty();
if (d) {
--- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #460837:460838
@@ -287,6 +287,9 @@
void KstViewObject::paint(KstPaintType type, QPainter& p) {
+ p.save();
+ p.setViewport(geometry());
+ p.setWindow(geometry());
bool hadClipping = p.hasClipping();
QRegion oldRegion = p.clipRegion();
bool maximized = false;
@@ -339,6 +342,7 @@
}
p.setClipping(hadClipping);
+ p.restore();
setDirty(false);
}
More information about the Kst
mailing list