1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Implemented status bar enable/disable

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27200 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-30 21:28:11 +00:00
parent 8114979e8e
commit 35150b6dcb
8 changed files with 43 additions and 3 deletions

View file

@ -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()