summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbviewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
-rw-r--r--utils/themeeditor/graphics/rbviewport.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp
index 22b2ada..4b85a30 100644
--- a/utils/themeeditor/graphics/rbviewport.cpp
+++ b/utils/themeeditor/graphics/rbviewport.cpp
@@ -33,7 +33,8 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
: QGraphicsItem(info.screen()), font(info.screen()->getFont(0)),
foreground(info.screen()->foreground()),
background(info.screen()->background()), textOffset(0,0),
- screen(info.screen()), textAlign(Left)
+ screen(info.screen()), textAlign(Left), showStatusBar(false),
+ statusBarTexture(":/render/statusbar.png")
{
if(!node->tag)
{
@@ -140,6 +141,9 @@ void RBViewport::paint(QPainter *painter,
painter->setPen(customUI ? Qt::blue : Qt::red);
if(debug)
painter->drawRect(size);
+
+ if(showStatusBar)
+ painter->fillRect(QRectF(0, 0, size.width(), 8), statusBarTexture);
}
void RBViewport::newLine()