From 3313ab8bb15867c61da035995396d8575f5eca16 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 29 Jun 2010 07:15:41 +0000 Subject: Theme Editor: Implemented conditional rendering, most conditionals should work correctly now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27169 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbimage.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'utils/themeeditor/graphics/rbimage.cpp') diff --git a/utils/themeeditor/graphics/rbimage.cpp b/utils/themeeditor/graphics/rbimage.cpp index f15d1ed..ce92d2f 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) } else + { + size = QRectF(0, 0, 0, 0); + image = 0; + } +} + +RBImage::RBImage(const RBImage &other, QGraphicsItem* parent) + : QGraphicsItem(parent), tiles(other.tiles), currentTile(other.currentTile) +{ + if(other.image) + image = new QPixmap(*(other.image)); + else image = 0; + size = other.size; + setPos(other.x(), other.y()); } RBImage::~RBImage() -- cgit v1.1