QtPBFImagePlugin/src/text.h

19 lines
458 B
C
Raw Normal View History

2018-10-29 00:11:23 +01:00
#ifndef TEXT_H
#define TEXT_H
#include <QGraphicsScene>
class Text : public QGraphicsScene
{
public:
2018-10-29 18:42:04 +01:00
Text(int size, QObject *parent = 0) : QGraphicsScene(parent)
{setSceneRect(0, 0, size, size);}
2018-10-29 00:11:23 +01:00
void addLabel(const QString &text, const QPointF &pos, const QFont &font,
const QPen &pen, qreal maxTextWidth);
void addLabel(const QString &text, const QPainterPath &path,
2018-10-31 17:40:43 +01:00
const QFont &font, const QPen &pen, qreal maxAngle);
2018-10-29 00:11:23 +01:00
};
#endif // TEXT_H