diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index b620e1b554..a92825362d 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) | |||
113 | if(h < 0) | 113 | if(h < 0) |
114 | h = info.screen()->getHeight() + h - y; | 114 | h = info.screen()->getHeight() + h - y; |
115 | 115 | ||
116 | /* Adjusting to screen coordinates if necessary */ | ||
117 | if(screen->parentItem() != 0) | ||
118 | { | ||
119 | x -= screen->parentItem()->pos().x(); | ||
120 | y -= screen->parentItem()->pos().y(); | ||
121 | } | ||
122 | |||
123 | |||
116 | setPos(x, y); | 124 | setPos(x, y); |
117 | size = QRectF(0, 0, w, h); | 125 | size = QRectF(0, 0, w, h); |
118 | } | 126 | } |
119 | 127 | ||
120 | debug = info.device()->data("showviewports").toBool(); | 128 | debug = info.device()->data("showviewports").toBool(); |
121 | lineHeight = font->lineHeight(); | 129 | lineHeight = font->lineHeight(); |
130 | if(customUI) | ||
131 | screen->setCustomUI(this); | ||
122 | } | 132 | } |
123 | 133 | ||
124 | RBViewport::~RBViewport() | 134 | RBViewport::~RBViewport() |