1.1 --- a/headingobj.h Thu Nov 23 13:53:08 2006 +0000
1.2 +++ b/headingobj.h Fri Dec 29 13:52:17 2006 +0000
1.3 @@ -6,7 +6,7 @@
1.4 class HeadingObj:public MapObj {
1.5 public:
1.6 HeadingObj();
1.7 - HeadingObj(Q3Canvas*);
1.8 + HeadingObj(QGraphicsScene*);
1.9 virtual ~HeadingObj();
1.10 virtual void init();
1.11 virtual void copy(HeadingObj*);
1.12 @@ -15,7 +15,7 @@
1.13 virtual void positionBBox();
1.14 virtual void calcBBoxSize();
1.15 private:
1.16 - Q3CanvasText* newLine(QString); // generate new textline
1.17 + QGraphicsTextItem* newLine(QString); // generate new textline
1.18 public:
1.19 virtual void setText(QString);
1.20 virtual QString text();
1.21 @@ -24,13 +24,13 @@
1.22 virtual void setColor(QColor);
1.23 virtual QColor getColor();
1.24 virtual void setVisibility(bool);
1.25 - virtual int getHeight();
1.26 - virtual int getWidth();
1.27 + virtual qreal getHeight();
1.28 + virtual qreal getWidth();
1.29
1.30 protected:
1.31 QString heading;
1.32 int textwidth; // width for formatting text
1.33 - QList <Q3CanvasText*> textline; // a part of e.g. the parabel
1.34 + QList <QGraphicsTextItem*> textline; // a part of e.g. the parabel
1.35 QColor color;
1.36 QFont font;
1.37 };