diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index 2c6fb9d7c3..a986127987 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp | |||
@@ -56,6 +56,16 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info, | |||
56 | customUI = false; | 56 | customUI = false; |
57 | font = screen->getFont(1); | 57 | font = screen->getFont(1); |
58 | 58 | ||
59 | screen->setDefault(this); | ||
60 | |||
61 | if(screen->getCustomUI()) | ||
62 | { | ||
63 | RBViewport* cui = screen->getCustomUI(); | ||
64 | size = cui->boundingRect(); | ||
65 | setPos(cui->pos()); | ||
66 | |||
67 | } | ||
68 | |||
59 | /* Making sure the default viewport can't be graphically manipulated */ | 69 | /* Making sure the default viewport can't be graphically manipulated */ |
60 | setFlag(ItemIsSelectable, false); | 70 | setFlag(ItemIsSelectable, false); |
61 | setFlag(ItemIsMovable, false); | 71 | setFlag(ItemIsMovable, false); |
@@ -299,6 +309,12 @@ void RBViewport::showPlaylist(const RBRenderInfo &info, int start, | |||
299 | } | 309 | } |
300 | } | 310 | } |
301 | 311 | ||
312 | void RBViewport::makeFullScreen() | ||
313 | { | ||
314 | size = screen->boundingRect(); | ||
315 | setPos(screen->pos()); | ||
316 | } | ||
317 | |||
302 | void RBViewport::saveGeometry() | 318 | void RBViewport::saveGeometry() |
303 | { | 319 | { |
304 | QRectF bounds = boundingRect(); | 320 | QRectF bounds = boundingRect(); |