diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbalbumart.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbalbumart.cpp | 12 |
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 @@ | |||
28 | RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth, | 28 | RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth, |
29 | int maxHeight, int artWidth, int artHeight, | 29 | int maxHeight, int artWidth, int artHeight, |
30 | ParseTreeNode* node, char hAlign, char vAlign) | 30 | ParseTreeNode* node, char hAlign, char vAlign) |
31 | : RBMovable(parent), size(0, 0, maxWidth, | 31 | : RBMovable(parent),artWidth(artWidth), |
32 | maxHeight), | 32 | artHeight(artHeight), hAlign(hAlign), vAlign(vAlign), |
33 | artWidth(artWidth), artHeight(artHeight), | ||
34 | hAlign(hAlign), vAlign(vAlign), | ||
35 | texture(":/render/albumart.png"), node(node) | 33 | texture(":/render/albumart.png"), node(node) |
36 | { | 34 | { |
35 | size = QRectF(0, 0, maxWidth, maxHeight); | ||
37 | setFlag(ItemSendsGeometryChanges, false); | 36 | setFlag(ItemSendsGeometryChanges, false); |
38 | 37 | ||
39 | setPos(x, y); | 38 | setPos(x, y); |
40 | hide(); | 39 | hide(); |
41 | } | 40 | } |
42 | 41 | ||
43 | QRectF RBAlbumArt::boundingRect() const | ||
44 | { | ||
45 | return size; | ||
46 | } | ||
47 | |||
48 | void RBAlbumArt::paint(QPainter *painter, | 42 | void RBAlbumArt::paint(QPainter *painter, |
49 | const QStyleOptionGraphicsItem *option, QWidget *widget) | 43 | const QStyleOptionGraphicsItem *option, QWidget *widget) |
50 | { | 44 | { |