summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/graphics/rbalbumart.cpp
diff options
context:
space:
mode:
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)
{