summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbviewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
-rw-r--r--utils/themeeditor/graphics/rbviewport.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp
index a92825362d..3b8a02dd87 100644
--- a/utils/themeeditor/graphics/rbviewport.cpp
+++ b/utils/themeeditor/graphics/rbviewport.cpp
@@ -30,8 +30,7 @@
30#include "skin_parser.h" 30#include "skin_parser.h"
31 31
32RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) 32RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
33 : QGraphicsItem(info.screen()), font(info.screen()->getFont(0)), 33 : QGraphicsItem(info.screen()), foreground(info.screen()->foreground()),
34 foreground(info.screen()->foreground()),
35 background(info.screen()->background()), textOffset(0,0), 34 background(info.screen()->background()), textOffset(0,0),
36 screen(info.screen()), textAlign(Left), showStatusBar(false), 35 screen(info.screen()), textAlign(Left), showStatusBar(false),
37 statusBarTexture(":/render/statusbar.png") 36 statusBarTexture(":/render/statusbar.png")
@@ -42,6 +41,7 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
42 size = QRectF(0, 0, info.screen()->getWidth(), 41 size = QRectF(0, 0, info.screen()->getWidth(),
43 info.screen()->getHeight()); 42 info.screen()->getHeight());
44 customUI = false; 43 customUI = false;
44 font = screen->getFont(1);
45 45
46 if(info.model()->rowCount(QModelIndex()) > 1) 46 if(info.model()->rowCount(QModelIndex()) > 1)
47 { 47 {
@@ -120,6 +120,10 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
120 y -= screen->parentItem()->pos().y(); 120 y -= screen->parentItem()->pos().y();
121 } 121 }
122 122
123 if(node->params[++param].type == skin_tag_parameter::DEFAULT)
124 font = screen->getFont(1);
125 else
126 font = screen->getFont(node->params[param].data.numeric);
123 127
124 setPos(x, y); 128 setPos(x, y);
125 size = QRectF(0, 0, w, h); 129 size = QRectF(0, 0, w, h);