diff options
Diffstat (limited to 'utils/themeeditor/graphics/rbalbumart.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbalbumart.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/utils/themeeditor/graphics/rbalbumart.cpp b/utils/themeeditor/graphics/rbalbumart.cpp index bd3a8791fb..1dbe2855f8 100644 --- a/utils/themeeditor/graphics/rbalbumart.cpp +++ b/utils/themeeditor/graphics/rbalbumart.cpp | |||
@@ -22,17 +22,17 @@ | |||
22 | #include "rbalbumart.h" | 22 | #include "rbalbumart.h" |
23 | 23 | ||
24 | #include <QPainter> | 24 | #include <QPainter> |
25 | #include <QDebug> | ||
26 | 25 | ||
27 | RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth, | 26 | RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth, |
28 | int maxHeight, int artWidth, int artHeight, char hAlign, | 27 | int maxHeight, int artWidth, int artHeight, char hAlign, |
29 | char vAlign) | 28 | char vAlign) |
30 | : QGraphicsItem(parent), size(x, y, maxWidth, | 29 | : RBMovable(parent), size(0, 0, maxWidth, |
31 | maxHeight), | 30 | maxHeight), |
32 | artWidth(artWidth), artHeight(artHeight), | 31 | artWidth(artWidth), artHeight(artHeight), |
33 | hAlign(hAlign), vAlign(vAlign), | 32 | hAlign(hAlign), vAlign(vAlign), |
34 | texture(":/render/albumart.png") | 33 | texture(":/render/albumart.png") |
35 | { | 34 | { |
35 | setPos(x, y); | ||
36 | hide(); | 36 | hide(); |
37 | } | 37 | } |
38 | 38 | ||
@@ -92,4 +92,11 @@ void RBAlbumArt::paint(QPainter *painter, | |||
92 | } | 92 | } |
93 | 93 | ||
94 | painter->fillRect(drawArea, texture); | 94 | painter->fillRect(drawArea, texture); |
95 | |||
96 | RBMovable::paint(painter, option, widget); | ||
97 | } | ||
98 | |||
99 | void RBAlbumArt::saveGeometry() | ||
100 | { | ||
101 | |||
95 | } | 102 | } |