diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-23 07:18:22 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-23 07:18:22 +0000 |
| commit | d3027053f955106708c5474d35cf41cd894bf450 (patch) | |
| tree | f29d7ff83cd7cb6c998809cecbad4bb6ff1ea1cb /utils/themeeditor/graphics/rbviewport.cpp | |
| parent | a937b8ba0568bbd028791fb986d1ab7e41ab6f5b (diff) | |
| download | rockbox-d3027053f955106708c5474d35cf41cd894bf450.zip rockbox-d3027053f955106708c5474d35cf41cd894bf450.tar.gz rockbox-d3027053f955106708c5474d35cf41cd894bf450.tar.bz2 rockbox-d3027053f955106708c5474d35cf41cd894bf450.tar.xz | |
Theme Editor: Working on image rendering
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27083 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
| -rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 9d94967..3a20175 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -37,6 +37,7 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) /* Default viewport takes up the entire screen */ size = QRectF(0, 0, info.screen()->getWidth(), info.screen()->getHeight()); + customUI = false; if(info.model()->rowCount(QModelIndex()) > 1) { @@ -122,8 +123,9 @@ QRectF RBViewport::boundingRect() const void RBViewport::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { - QColor color = customUI ? Qt::blue : Qt::red; - painter->fillRect(size, color); + painter->setBrush(Qt::NoBrush); + painter->setPen(customUI ? Qt::blue : Qt::red); + painter->drawRect(size); } /* Called at the end of a logical line */ |