summaryrefslogtreecommitdiff
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 @@
32RBScreen::RBScreen(const RBRenderInfo& info, bool remote, 32RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
33 QGraphicsItem *parent) 33 QGraphicsItem *parent)
34 :QGraphicsItem(parent), backdrop(0), project(project), 34 :QGraphicsItem(parent), backdrop(0), project(project),
35 albumArt(0), customUI(0) 35 albumArt(0), customUI(0), defaultView(0)
36{ 36{
37 37
38 setAcceptHoverEvents(true); 38 setAcceptHoverEvents(true);
@@ -221,11 +221,29 @@ void RBScreen::makeCustomUI(QString id)
221 } 221 }
222} 222}
223 223
224void RBScreen::endSbsRender()
225{
226 sbsChildren = children();
227
228 QList<int> keys = fonts.keys();
229 for(QList<int>::iterator i = keys.begin(); i != keys.end(); i++)
230 {
231 if(*i > 2)
232 fonts.remove(*i);
233 }
234
235 images.clear();
236 namedViewports.clear();
237 displayedViewports.clear();
238}
239
224void RBScreen::breakSBS() 240void RBScreen::breakSBS()
225{ 241{
226 width = fullWidth; 242 for(QList<QGraphicsItem*>::iterator i = sbsChildren.begin()
227 height = fullHeight; 243 ; i != sbsChildren.end(); i++)
228 setParentItem(0); 244 (*i)->hide();
245 if(defaultView)
246 defaultView->makeFullScreen();
229} 247}
230 248
231QColor RBScreen::stringToColor(QString str, QColor fallback) 249QColor RBScreen::stringToColor(QString str, QColor fallback)