diff -r 5522d1da7e37 -r 23dba6527a7d headingobj.cpp --- a/headingobj.cpp Tue Jan 23 11:50:53 2007 +0000 +++ b/headingobj.cpp Wed Apr 11 09:21:15 2007 +0000 @@ -90,12 +90,13 @@ bbox.setSize (QSizeF(w,h)); } -QGraphicsTextItem* HeadingObj::newLine(QString s) +QGraphicsSimpleTextItem* HeadingObj::newLine(QString s) { - QGraphicsTextItem *t=scene->addText(s); + QGraphicsSimpleTextItem *t=new QGraphicsSimpleTextItem (s,0,scene); t->setFont (font); t->setZValue(Z_TEXT); - t->setDefaultTextColor(color); + //t->setDefaultTextColor(color); + t->setBrush(color); return t; } @@ -217,7 +218,8 @@ { color=c; for (int i=0; isetDefaultTextColor(c); + //textline.at(i)->setDefaultTextColor(c); + textline.at(i)->setBrush(c); } }