summaryrefslogtreecommitdiff
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.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/utils/themeeditor/graphics/rbalbumart.cpp b/utils/themeeditor/graphics/rbalbumart.cpp
index bd3a879..1dbe285 100644
--- a/utils/themeeditor/graphics/rbalbumart.cpp
+++ b/utils/themeeditor/graphics/rbalbumart.cpp
@@ -22,17 +22,17 @@
#include "rbalbumart.h"
#include <QPainter>
-#include <QDebug>
RBAlbumArt::RBAlbumArt(QGraphicsItem *parent, int x, int y, int maxWidth,
int maxHeight, int artWidth, int artHeight, char hAlign,
char vAlign)
- : QGraphicsItem(parent), size(x, y, maxWidth,
- maxHeight),
+ : RBMovable(parent), size(0, 0, maxWidth,
+ maxHeight),
artWidth(artWidth), artHeight(artHeight),
hAlign(hAlign), vAlign(vAlign),
texture(":/render/albumart.png")
{
+ setPos(x, y);
hide();
}
@@ -92,4 +92,11 @@ void RBAlbumArt::paint(QPainter *painter,
}
painter->fillRect(drawArea, texture);
+
+ RBMovable::paint(painter, option, widget);
+}
+
+void RBAlbumArt::saveGeometry()
+{
+
}