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.cpp16
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,
customUI = false;
font = screen->getFont(1);
+ screen->setDefault(this);
+
+ if(screen->getCustomUI())
+ {
+ RBViewport* cui = screen->getCustomUI();
+ size = cui->boundingRect();
+ setPos(cui->pos());
+
+ }
+
/* Making sure the default viewport can't be graphically manipulated */
setFlag(ItemIsSelectable, false);
setFlag(ItemIsMovable, false);
@@ -299,6 +309,12 @@ void RBViewport::showPlaylist(const RBRenderInfo &info, int start,
}
}
+void RBViewport::makeFullScreen()
+{
+ size = screen->boundingRect();
+ setPos(screen->pos());
+}
+
void RBViewport::saveGeometry()
{
QRectF bounds = boundingRect();