diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-01 02:29:58 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-01 02:29:58 +0000 |
commit | c215d97b4dfdd08a59af20dacb5178087ee230c5 (patch) | |
tree | 526827bdbb80f42c65c419860e65fa71929f840f /utils/themeeditor/graphics | |
parent | 8cd51a70c58afc67136d889400a0aafe68107ff1 (diff) | |
download | rockbox-c215d97b4dfdd08a59af20dacb5178087ee230c5.tar.gz rockbox-c215d97b4dfdd08a59af20dacb5178087ee230c5.zip |
Theme Editor: Made blank lines render newlines in the output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27206 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics')
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 5 | ||||
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 138a6b52bc..2dd272927e 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp | |||
@@ -154,11 +154,12 @@ void RBViewport::paint(QPainter *painter, | |||
154 | painter->fillRect(QRectF(0, 0, size.width(), 8), statusBarTexture); | 154 | painter->fillRect(QRectF(0, 0, size.width(), 8), statusBarTexture); |
155 | } | 155 | } |
156 | 156 | ||
157 | void RBViewport::newLine() | 157 | void RBViewport::newLine(bool force) |
158 | { | 158 | { |
159 | if(leftText.count() != 0 | 159 | if(leftText.count() != 0 |
160 | || centerText.count() != 0 | 160 | || centerText.count() != 0 |
161 | || rightText.count() != 0) | 161 | || rightText.count() != 0 |
162 | || force) | ||
162 | { | 163 | { |
163 | textOffset.setY(textOffset.y() + lineHeight); | 164 | textOffset.setY(textOffset.y() + lineHeight); |
164 | textOffset.setX(0); | 165 | textOffset.setX(0); |
diff --git a/utils/themeeditor/graphics/rbviewport.h b/utils/themeeditor/graphics/rbviewport.h index 2aff315873..ee7d0540eb 100644 --- a/utils/themeeditor/graphics/rbviewport.h +++ b/utils/themeeditor/graphics/rbviewport.h | |||
@@ -53,7 +53,7 @@ public: | |||
53 | void makeCustomUI(){ customUI = true; } | 53 | void makeCustomUI(){ customUI = true; } |
54 | void clearCustomUI(){ customUI = false; } | 54 | void clearCustomUI(){ customUI = false; } |
55 | 55 | ||
56 | void newLine(); | 56 | void newLine(bool force = false); |
57 | void write(QString text); | 57 | void write(QString text); |
58 | void alignText(Alignment align){ textAlign = align; } | 58 | void alignText(Alignment align){ textAlign = align; } |
59 | 59 | ||