mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-07-19 13:24:25 +02:00
Properly scale the whole tile content
This commit is contained in:
@ -6,8 +6,7 @@
|
||||
class Text
|
||||
{
|
||||
public:
|
||||
Text(const QSize &size, qreal scale)
|
||||
: _sceneRect(QRectF(QPointF(0, 0), size)), _fontScale(scale) {}
|
||||
Text(const QSize &size) : _sceneRect(QRectF(QPointF(0, 0), size)) {}
|
||||
~Text();
|
||||
|
||||
void render(QPainter *painter) const;
|
||||
@ -22,7 +21,6 @@ private:
|
||||
QList<TextItem *> collidingItems(const TextItem *item) const;
|
||||
|
||||
QRectF _sceneRect;
|
||||
qreal _fontScale;
|
||||
QList<TextItem *> _items;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user