From 6d609e009f4836418bbe5b404be8ae03d29ef8cb Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Wed, 7 Jul 2010 09:33:47 +0000 Subject: Theme Editor: Implemented caching for rendered text, added profiling info to debug build, added a 500msec delay when rendering after code changes to prevent editor from hanging on large themes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27332 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbtext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/graphics/rbtext.h') diff --git a/utils/themeeditor/graphics/rbtext.h b/utils/themeeditor/graphics/rbtext.h index d03505491e..936a809f6c 100644 --- a/utils/themeeditor/graphics/rbtext.h +++ b/utils/themeeditor/graphics/rbtext.h @@ -28,14 +28,14 @@ class RBText : public QGraphicsItem { public: - RBText(const QImage& image, int maxWidth, QGraphicsItem* parent); + RBText(QImage* image, int maxWidth, QGraphicsItem* parent); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); private: - QImage image; + QImage* image; int maxWidth; }; -- cgit v1.2.3