Theme Editor: Status bar no longer drawn by default
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27263 a1c6a512-1295-4272-9138-f99709370657
diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp
index cb69afd..054e8fe 100644
--- a/utils/themeeditor/graphics/rbscreen.cpp
+++ b/utils/themeeditor/graphics/rbscreen.cpp
@@ -29,8 +29,7 @@
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
QGraphicsItem *parent)
:QGraphicsItem(parent), backdrop(0), project(project),
- albumArt(0), defaultStatusBar(true),
- statusBarTexture(":/render/statusbar.png")
+ albumArt(0)
{
if(remote)
@@ -118,8 +117,6 @@
painter->fillRect(0, 0, width, height, bgColor);
}
- if(defaultStatusBar)
- painter->fillRect(QRectF(0, 0, width, 8), statusBarTexture);
}
void RBScreen::loadViewport(QString name, RBViewport *view)
diff --git a/utils/themeeditor/graphics/rbscreen.h b/utils/themeeditor/graphics/rbscreen.h
index 70df399..b472e8e 100644
--- a/utils/themeeditor/graphics/rbscreen.h
+++ b/utils/themeeditor/graphics/rbscreen.h
@@ -84,8 +84,6 @@
}
}
- void disableStatusBar(){ defaultStatusBar = false; }
- void enableStatusBar(){ defaultStatusBar = true; }
private:
int width;
@@ -104,10 +102,6 @@
QList<QString> displayedViewports;
RBAlbumArt* albumArt;
-
- bool defaultStatusBar;
- QPixmap statusBarTexture;
-
};
#endif // RBSCREEN_H
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 08ce703..f1ee3b2 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -628,15 +628,17 @@
switch(element->tag->name[1])
{
case 'd':
- info.screen()->disableStatusBar();
+ /* %wd */
+ /* Disable SBS rendering */
return true;
case 'e':
- info.screen()->enableStatusBar();
+ /* %we */
+ /* Totally extraneous */
return true;
case 'i':
- info.screen()->disableStatusBar();
+ /* %wi */
viewport->enableStatusBar();
return true;
}