From f09370058ff170bcf99481dd8115871ba20ee816 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Thu, 1 Jul 2010 02:49:44 +0000 Subject: Theme Editor: Fixed album art positioning bug, removed unneeded debug code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27207 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/graphics/rbalbumart.h | 2 ++ utils/themeeditor/graphics/rbscreen.h | 1 + 2 files changed, 3 insertions(+) (limited to 'utils/themeeditor/graphics') diff --git a/utils/themeeditor/graphics/rbalbumart.h b/utils/themeeditor/graphics/rbalbumart.h index 381b715525..f32c5f9bb1 100644 --- a/utils/themeeditor/graphics/rbalbumart.h +++ b/utils/themeeditor/graphics/rbalbumart.h @@ -35,6 +35,8 @@ public: void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); + void position(){ this->setPos(size.x(), size.y()); } + private: QRectF size; int artWidth; diff --git a/utils/themeeditor/graphics/rbscreen.h b/utils/themeeditor/graphics/rbscreen.h index 58788d463b..70df399b34 100644 --- a/utils/themeeditor/graphics/rbscreen.h +++ b/utils/themeeditor/graphics/rbscreen.h @@ -79,6 +79,7 @@ public: if(albumArt) { albumArt->setParentItem(view); + albumArt->position(); albumArt->show(); } } -- cgit v1.2.3