summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbviewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
-rw-r--r--utils/themeeditor/graphics/rbviewport.cpp20
1 files changed, 7 insertions, 13 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,
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)