diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbscreen.cpp | 26 |
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 @@ | |||
32 | RBScreen::RBScreen(const RBRenderInfo& info, bool remote, | 32 | RBScreen::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 | ||
224 | void 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 | |||
224 | void RBScreen::breakSBS() | 240 | void 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 | ||
231 | QColor RBScreen::stringToColor(QString str, QColor fallback) | 249 | QColor RBScreen::stringToColor(QString str, QColor fallback) |