diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
| -rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 4422f19..96d7e8b 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -51,7 +51,7 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) if(info.model()->rowCount(QModelIndex()) > 1) { /* If there is more than one viewport in the document */ - setVisible(false); + textOffset.setX(-1); } else { @@ -175,6 +175,9 @@ void RBViewport::paint(QPainter *painter, void RBViewport::newLine() { + if(textOffset.x() < 0) + return; + if(leftText != "") alignLeft(); @@ -201,6 +204,9 @@ void RBViewport::newLine() void RBViewport::write(QString text) { + if(textOffset.x() < 0) + return; + if(textAlign == Left) { leftText.append(text); |