summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbscreen.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-09 19:37:23 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-09 19:37:23 +0000
commitd1a392a0e95b10fe9603fbd379a70b4cc0ddf22f (patch)
treeb1ce5452aa5578c7cbc5e711373d73b52b797510 /utils/themeeditor/graphics/rbscreen.cpp
parent77b682571f80b0aec9a16182600678a1b553a4bb (diff)
downloadrockbox-d1a392a0e95b10fe9603fbd379a70b4cc0ddf22f.tar.gz
rockbox-d1a392a0e95b10fe9603fbd379a70b4cc0ddf22f.zip
Theme Editor: Co Used a more efficient/less error-prone system for rendering SBS documents underneath WPS documents
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27765 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r--utils/themeeditor/graphics/rbscreen.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp
index 1b1adc8be4..2b63a6bdfe 100644
--- a/utils/themeeditor/graphics/rbscreen.cpp
+++ b/utils/themeeditor/graphics/rbscreen.cpp
@@ -32,7 +32,7 @@
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
QGraphicsItem *parent)
:QGraphicsItem(parent), backdrop(0), project(project),
- albumArt(0), customUI(0)
+ albumArt(0), customUI(0), defaultView(0)
{
setAcceptHoverEvents(true);
@@ -221,11 +221,29 @@ void RBScreen::makeCustomUI(QString id)
}
}
+void RBScreen::endSbsRender()
+{
+ sbsChildren = children();
+
+ QList<int> keys = fonts.keys();
+ for(QList<int>::iterator i = keys.begin(); i != keys.end(); i++)
+ {
+ if(*i > 2)
+ fonts.remove(*i);
+ }
+
+ images.clear();
+ namedViewports.clear();
+ displayedViewports.clear();
+}
+
void RBScreen::breakSBS()
{
- width = fullWidth;
- height = fullHeight;
- setParentItem(0);
+ for(QList<QGraphicsItem*>::iterator i = sbsChildren.begin()
+ ; i != sbsChildren.end(); i++)
+ (*i)->hide();
+ if(defaultView)
+ defaultView->makeFullScreen();
}
QColor RBScreen::stringToColor(QString str, QColor fallback)