forked from len0rd/rockbox
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
This commit is contained in:
parent
c32728c91c
commit
5300c7014d
8 changed files with 39 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue