mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-07-20 13:54:25 +02:00
Initial version
This commit is contained in:
18
src/text.h
Normal file
18
src/text.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef TEXT_H
|
||||
#define TEXT_H
|
||||
|
||||
#include <QGraphicsScene>
|
||||
|
||||
class Text : public QGraphicsScene
|
||||
{
|
||||
public:
|
||||
Text(QObject *parent = 0) : QGraphicsScene(parent)
|
||||
{setSceneRect(0, 0, 256, 256);}
|
||||
|
||||
void addLabel(const QString &text, const QPointF &pos, const QFont &font,
|
||||
const QPen &pen, qreal maxTextWidth);
|
||||
void addLabel(const QString &text, const QPainterPath &path,
|
||||
const QFont &font, const QPen &pen);
|
||||
};
|
||||
|
||||
#endif // TEXT_H
|
Reference in New Issue
Block a user