summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/themeeditor/graphics/rbimage.cpp3
-rw-r--r--utils/themeeditor/graphics/rbviewport.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbimage.cpp b/utils/themeeditor/graphics/rbimage.cpp
index 16e6bcb..f15d1ed 100644
--- a/utils/themeeditor/graphics/rbimage.cpp
+++ b/utils/themeeditor/graphics/rbimage.cpp
@@ -44,7 +44,8 @@ RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent)
}
- size = QRectF(x, y, image->width(), image->height() / tiles);
+ size = QRectF(0, 0, image->width(), image->height() / tiles);
+ setPos(x, y);
}
else
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp
index 3a20175..c5b88b3 100644
--- a/utils/themeeditor/graphics/rbviewport.cpp
+++ b/utils/themeeditor/graphics/rbviewport.cpp
@@ -100,7 +100,8 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
else
h = node->params[param].data.numeric;
- size = QRectF(x, y, w, h);
+ setPos(x, y);
+ size = QRectF(0, 0, w, h);
}
}