5 #include <QPainterPath>
8 class TextPathItem
: public TextItem
11 TextPathItem() : TextItem(0), _font(0), _color(0) {}
12 TextPathItem(const QPolygonF
&line
, const QString
*label
,
13 const QRect
&tileRect
, const QFont
*font
, const QColor
*color
,
14 const QColor
*haloColor
);
15 TextPathItem(const QPainterPath
&line
, const QString
*label
,
16 const QRect
&tileRect
, const QFont
*font
, const QColor
*color
,
17 const QColor
*haloColor
);
19 bool isValid() const {return !_path
.isEmpty();}
21 QPainterPath
shape() const {return _shape
;}
22 QRectF
boundingRect() const {return _rect
;}
23 void paint(QPainter
*painter
) const;
28 const QColor
*_haloColor
;
34 #endif // TEXTPATHITEM_H