diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:51:07 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:51:07 +0000 |
| commit | 5300c7014d602c57fcae7f6619f5138d83ba33c0 (patch) | |
| tree | 2fff7d8ac48dfc7c3395c57c31efdc7b90707d61 /utils/themeeditor/graphics/rbviewport.cpp | |
| parent | c32728c91c2579688d3e7ffc4afbea1acf2385e0 (diff) | |
| download | rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.zip rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.tar.gz rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.tar.bz2 rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.tar.xz | |
Theme Editor: Added Show Viewports option to device configuration panel, implemented simple rendering of info tags from device configuration
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
| -rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 03a7604..8fa05a2 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -105,7 +105,7 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) setPos(x, y); size = QRectF(0, 0, w, h); - + debug = info.device()->data("showviewports").toBool(); } } @@ -135,7 +135,8 @@ void RBViewport::paint(QPainter *painter, painter->setBrush(Qt::NoBrush); painter->setPen(customUI ? Qt::blue : Qt::red); - painter->drawRect(size); + if(debug) + painter->drawRect(size); } void RBViewport::newLine() |