summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics')
-rw-r--r--utils/themeeditor/graphics/rbviewport.cpp20
-rw-r--r--utils/themeeditor/graphics/rbviewport.h2
2 files changed, 8 insertions, 14 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp
index 2dd272927e..d4a8ede090 100644
--- a/utils/themeeditor/graphics/rbviewport.cpp
+++ b/utils/themeeditor/graphics/rbviewport.cpp
@@ -154,20 +154,14 @@ 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(bool force) 157void RBViewport::newLine()
158{ 158{
159 if(leftText.count() != 0 159 textOffset.setY(textOffset.y() + lineHeight);
160 || centerText.count() != 0 160 textOffset.setX(0);
161 || rightText.count() != 0 161 textAlign = Left;
162 || force) 162 leftText.clear();
163 { 163 rightText.clear();
164 textOffset.setY(textOffset.y() + lineHeight); 164 centerText.clear();
165 textOffset.setX(0);
166 textAlign = Left;
167 leftText.clear();
168 rightText.clear();
169 centerText.clear();
170 }
171} 165}
172 166
173void RBViewport::write(QString text) 167void RBViewport::write(QString text)
diff --git a/utils/themeeditor/graphics/rbviewport.h b/utils/themeeditor/graphics/rbviewport.h
index ee7d0540eb..2aff315873 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(bool force = false); 56 void newLine();
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