[Kst] extragear/graphics/kst/src/libkstapp
George Staikos
staikos at kde.org
Mon May 15 22:27:20 CEST 2006
SVN commit 541263 by staikos:
use the GUI-selected pen
BUG: 127393
M +1 -3 kstviewlabel.cpp
M +1 -1 labelrenderer.cpp
M +1 -0 labelrenderer.h
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlabel.cpp #541262:541263
@@ -316,9 +316,7 @@
p.translate(tx, ty);
p.rotate(_rotation);
- QPen pen;
- pen.setColor(foregroundColor());
- p.setPen(pen);
+ rc.pen = foregroundColor();
rc.xStart = rc.x;
#ifdef BENCHMARK
--- trunk/extragear/graphics/kst/src/libkstapp/labelrenderer.cpp #541262:541263
@@ -58,7 +58,7 @@
if (rc.p && fi->attributes.color.isValid()) {
rc.p->setPen(fi->attributes.color);
} else if (rc.p) {
- rc.p->setPen(QColor(0, 0, 0));
+ rc.p->setPen(rc.pen);
}
rc.setFont(f);
--- trunk/extragear/graphics/kst/src/libkstapp/labelrenderer.h #541262:541263
@@ -122,6 +122,7 @@
int precision;
bool substitute;
QValueVector<DataRef> *_cache;
+ QPen pen;
private:
QFont _font;
More information about the Kst
mailing list