forked from len0rd/rockbox
Theme Editor: Made all lines of text render as a single graphic, viewport size limits now enforced on text width
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27327 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ce5ee193d4
commit
3214e3710a
6 changed files with 59 additions and 38 deletions
|
@ -28,7 +28,7 @@
|
|||
class RBText : public QGraphicsItem
|
||||
{
|
||||
public:
|
||||
RBText(const QImage& image, QGraphicsItem* parent);
|
||||
RBText(const QImage& image, int maxWidth, QGraphicsItem* parent);
|
||||
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
private:
|
||||
QImage image;
|
||||
int maxWidth;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue