summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbalbumart.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-05 22:31:46 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-05 22:31:46 +0000
commit10b9e3b024c3a1f3796b6c3f764a5dc3d19b84cb (patch)
tree8a7564f61395200b46575fb084edf647f7c84a15 /utils/themeeditor/graphics/rbalbumart.cpp
parent4b49ef2adea6f478c157f398777a7708a45932df (diff)
downloadrockbox-10b9e3b024c3a1f3796b6c3f764a5dc3d19b84cb.tar.gz
rockbox-10b9e3b024c3a1f3796b6c3f764a5dc3d19b84cb.zip
Theme Editor: Implemented resizing in RBMovable subclasses. Implementation is still somewhat crash-prone, but mostly works at this point
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27729 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbalbumart.cpp')
-rw-r--r--utils/themeeditor/graphics/rbalbumart.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/utils/themeeditor/graphics/rbalbumart.cpp b/utils/themeeditor/graphics/rbalbumart.cpp
index 40c6f05605..bb9bd12369 100644
--- a/utils/themeeditor/graphics/rbalbumart.cpp
+++ b/utils/themeeditor/graphics/rbalbumart.cpp
@@ -28,23 +28,17 @@
RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth,
int maxHeight, int artWidth, int artHeight,
ParseTreeNode* node, char hAlign, char vAlign)
- : RBMovable(parent), size(0, 0, maxWidth,
- maxHeight),
- artWidth(artWidth), artHeight(artHeight),
- hAlign(hAlign), vAlign(vAlign),
+ : RBMovable(parent),artWidth(artWidth),
+ artHeight(artHeight), hAlign(hAlign), vAlign(vAlign),
texture(":/render/albumart.png"), node(node)
{
+ size = QRectF(0, 0, maxWidth, maxHeight);
setFlag(ItemSendsGeometryChanges, false);
setPos(x, y);
hide();
}
-QRectF RBAlbumArt::boundingRect() const
-{
- return size;
-}
-
void RBAlbumArt::paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
{