1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Renderer now adds a newline after EVERY logical line in the parse tree

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27222 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-01 20:30:19 +00:00
parent a43fbbb9a3
commit a54bfaa69e
3 changed files with 9 additions and 15 deletions

View file

@ -154,20 +154,14 @@ void RBViewport::paint(QPainter *painter,
painter->fillRect(QRectF(0, 0, size.width(), 8), statusBarTexture);
}
void RBViewport::newLine(bool force)
void RBViewport::newLine()
{
if(leftText.count() != 0
|| centerText.count() != 0
|| rightText.count() != 0
|| force)
{
textOffset.setY(textOffset.y() + lineHeight);
textOffset.setX(0);
textAlign = Left;
leftText.clear();
rightText.clear();
centerText.clear();
}
textOffset.setY(textOffset.y() + lineHeight);
textOffset.setX(0);
textAlign = Left;
leftText.clear();
rightText.clear();
centerText.clear();
}
void RBViewport::write(QString text)