diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:51:07 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:51:07 +0000 |
commit | 5300c7014d602c57fcae7f6619f5138d83ba33c0 (patch) | |
tree | 2fff7d8ac48dfc7c3395c57c31efdc7b90707d61 /utils/themeeditor/graphics/rbscreen.cpp | |
parent | c32728c91c2579688d3e7ffc4afbea1acf2385e0 (diff) | |
download | rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.tar.gz rockbox-5300c7014d602c57fcae7f6619f5138d83ba33c0.zip |
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
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbscreen.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
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 @@ | |||
26 | #include <QPainter> | 26 | #include <QPainter> |
27 | #include <QFile> | 27 | #include <QFile> |
28 | 28 | ||
29 | RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) : | 29 | RBScreen::RBScreen(const RBRenderInfo& info, bool remote, |
30 | QGraphicsItem(parent), backdrop(0), project(project) | 30 | QGraphicsItem *parent) |
31 | :QGraphicsItem(parent), backdrop(0), project(project) | ||
31 | { | 32 | { |
32 | 33 | ||
33 | /* | 34 | if(remote) |
34 | width = info.settings()->value("#screenwidth", "300").toInt(); | 35 | { |
35 | height = info.settings()->value("#screenheight", "200").toInt(); | 36 | width = info.device()->data("remotewidth").toInt(); |
36 | */ | 37 | height = info.device()->data("remoteheight").toInt(); |
37 | 38 | } | |
38 | width = info.device()->data("screenwidth").toInt(); | 39 | else |
39 | height = info.device()->data("screenheight").toInt(); | 40 | { |
41 | width = info.device()->data("screenwidth").toInt(); | ||
42 | height = info.device()->data("screenheight").toInt(); | ||
43 | } | ||
40 | 44 | ||
41 | QString bg = info.settings()->value("background color", "FFFFFF"); | 45 | QString bg = info.settings()->value("background color", "FFFFFF"); |
42 | bgColor = stringToColor(bg, Qt::white); | 46 | bgColor = stringToColor(bg, Qt::white); |