diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbimage.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbimage.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbimage.cpp b/utils/themeeditor/graphics/rbimage.cpp index ce92d2fcde..954983eae2 100644 --- a/utils/themeeditor/graphics/rbimage.cpp +++ b/utils/themeeditor/graphics/rbimage.cpp | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "rbimage.h" | 26 | #include "rbimage.h" |
27 | 27 | ||
28 | RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent) | 28 | RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent) |
29 | : QGraphicsItem(parent), tiles(tiles), currentTile(0) | 29 | : RBMovable(parent), tiles(tiles), currentTile(0) |
30 | { | 30 | { |
31 | if(QFile::exists(file)) | 31 | if(QFile::exists(file)) |
32 | { | 32 | { |
@@ -56,7 +56,7 @@ RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | RBImage::RBImage(const RBImage &other, QGraphicsItem* parent) | 58 | RBImage::RBImage(const RBImage &other, QGraphicsItem* parent) |
59 | : QGraphicsItem(parent), tiles(other.tiles), currentTile(other.currentTile) | 59 | : RBMovable(parent), tiles(other.tiles), currentTile(other.currentTile) |
60 | { | 60 | { |
61 | if(other.image) | 61 | if(other.image) |
62 | image = new QPixmap(*(other.image)); | 62 | image = new QPixmap(*(other.image)); |
@@ -86,4 +86,11 @@ void RBImage::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, | |||
86 | painter->drawPixmap(size, *image, QRect(0, currentTile * image->height() | 86 | painter->drawPixmap(size, *image, QRect(0, currentTile * image->height() |
87 | / tiles, image->width(), | 87 | / tiles, image->width(), |
88 | image->height() / tiles)); | 88 | image->height() / tiles)); |
89 | |||
90 | RBMovable::paint(painter, option, widget); | ||
91 | } | ||
92 | |||
93 | void RBImage::saveGeometry() | ||
94 | { | ||
95 | |||
89 | } | 96 | } |