1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Robert Bieber 2010-06-29 07:15:41 +00:00
parent 449a895372
commit 3313ab8bb1
3 changed files with 89 additions and 4 deletions

View file

@ -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()