summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbimage.cpp')
-rw-r--r--utils/themeeditor/graphics/rbimage.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbimage.cpp b/utils/themeeditor/graphics/rbimage.cpp
index f15d1ed2aa..ce92d2fcde 100644
--- a/utils/themeeditor/graphics/rbimage.cpp
+++ b/utils/themeeditor/graphics/rbimage.cpp
@@ -49,7 +49,21 @@ RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent)
49 49
50 } 50 }
51 else 51 else
52 {
53 size = QRectF(0, 0, 0, 0);
54 image = 0;
55 }
56}
57
58RBImage::RBImage(const RBImage &other, QGraphicsItem* parent)
59 : QGraphicsItem(parent), tiles(other.tiles), currentTile(other.currentTile)
60{
61 if(other.image)
62 image = new QPixmap(*(other.image));
63 else
52 image = 0; 64 image = 0;
65 size = other.size;
66 setPos(other.x(), other.y());
53} 67}
54 68
55RBImage::~RBImage() 69RBImage::~RBImage()