summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r--utils/themeeditor/graphics/rbscreen.cpp22
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
29RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) : 29RBScreen::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);