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

@ -29,7 +29,8 @@
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
QGraphicsItem *parent)
:QGraphicsItem(parent), backdrop(0), project(project),
albumArt(0)
albumArt(0), defaultStatusBar(true),
statusBarTexture(":/render/statusbar.png")
{
if(remote)
@ -116,6 +117,9 @@ void RBScreen::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
{
painter->fillRect(0, 0, width, height, bgColor);
}
if(defaultStatusBar)
painter->fillRect(QRectF(0, 0, width, 8), statusBarTexture);
}
void RBScreen::loadViewport(QString name, RBViewport *view)