summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-01 02:29:58 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-01 02:29:58 +0000
commitc215d97b4dfdd08a59af20dacb5178087ee230c5 (patch)
tree526827bdbb80f42c65c419860e65fa71929f840f /utils/themeeditor/graphics
parent8cd51a70c58afc67136d889400a0aafe68107ff1 (diff)
downloadrockbox-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.cpp5
-rw-r--r--utils/themeeditor/graphics/rbviewport.h2
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
157void RBViewport::newLine() 157void 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