From 5300c7014d602c57fcae7f6619f5138d83ba33c0 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sat, 26 Jun 2010 05:51:07 +0000 Subject: Theme Editor: Added Show Viewports option to device configuration panel, implemented simple rendering of info tags from device configuration git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27136 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbscreen.cpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'utils/themeeditor/graphics/rbscreen.cpp') diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp index da6d20bbe8..b93d3c88ad 100644 --- a/utils/themeeditor/graphics/rbscreen.cpp +++ b/utils/themeeditor/graphics/rbscreen.cpp @@ -26,17 +26,21 @@ #include #include -RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) : - QGraphicsItem(parent), backdrop(0), project(project) +RBScreen::RBScreen(const RBRenderInfo& info, bool remote, + QGraphicsItem *parent) + :QGraphicsItem(parent), backdrop(0), project(project) { - /* - width = info.settings()->value("#screenwidth", "300").toInt(); - height = info.settings()->value("#screenheight", "200").toInt(); -*/ - - width = info.device()->data("screenwidth").toInt(); - height = info.device()->data("screenheight").toInt(); + if(remote) + { + width = info.device()->data("remotewidth").toInt(); + height = info.device()->data("remoteheight").toInt(); + } + else + { + width = info.device()->data("screenwidth").toInt(); + height = info.device()->data("screenheight").toInt(); + } QString bg = info.settings()->value("background color", "FFFFFF"); bgColor = stringToColor(bg, Qt::white); -- cgit v1.2.3