summaryrefslogtreecommitdiff
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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp
index b620e1b..a928253 100644
--- a/utils/themeeditor/graphics/rbviewport.cpp
+++ b/utils/themeeditor/graphics/rbviewport.cpp
@@ -113,12 +113,22 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
if(h < 0)
h = info.screen()->getHeight() + h - y;
+ /* Adjusting to screen coordinates if necessary */
+ if(screen->parentItem() != 0)
+ {
+ x -= screen->parentItem()->pos().x();
+ y -= screen->parentItem()->pos().y();
+ }
+
+
setPos(x, y);
size = QRectF(0, 0, w, h);
}
debug = info.device()->data("showviewports").toBool();
lineHeight = font->lineHeight();
+ if(customUI)
+ screen->setCustomUI(this);
}
RBViewport::~RBViewport()