headingobj.cpp
changeset 427 fb74fa7bfb4c
parent 408 c2a05fa925a1
child 428 9ae68208e2ff
     1.1 --- a/headingobj.cpp	Fri Dec 08 20:18:56 2006 +0000
     1.2 +++ b/headingobj.cpp	Mon Feb 12 09:28:47 2007 +0000
     1.3 @@ -92,13 +92,10 @@
     1.4  
     1.5  QGraphicsTextItem* HeadingObj::newLine(QString s)
     1.6  {
     1.7 -    QGraphicsTextItem *t=scene->addText("");
     1.8 +    QGraphicsTextItem *t=scene->addText(s);
     1.9      t->setFont (font);
    1.10      t->setZValue(Z_TEXT);
    1.11      t->setDefaultTextColor(color);
    1.12 -    t->setPlainText(s);
    1.13 -	//t->setTextFlags(Qt::AlignLeft);
    1.14 -    t->show();
    1.15      return t;
    1.16  }
    1.17