mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-07-18 04:44:24 +02:00
Added support for the text-rotation-alignment style property
Code cleanup
This commit is contained in:
@ -6,9 +6,11 @@
|
||||
class TextItem
|
||||
{
|
||||
public:
|
||||
TextItem() : _visible(true) {}
|
||||
TextItem(const QString &text) : _text(text), _visible(true) {}
|
||||
virtual ~TextItem() {}
|
||||
|
||||
const QString &text() const {return _text;}
|
||||
|
||||
virtual QPainterPath shape() const = 0;
|
||||
virtual QRectF boundingRect() const = 0;
|
||||
virtual void paint(QPainter *painter) const = 0;
|
||||
@ -28,6 +30,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
QString _text;
|
||||
bool _visible;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user