forked from len0rd/rockbox
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
This commit is contained in:
parent
c215d97b4d
commit
f09370058f
3 changed files with 3 additions and 4 deletions
|
@ -35,6 +35,8 @@ public:
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
QWidget *widget);
|
QWidget *widget);
|
||||||
|
|
||||||
|
void position(){ this->setPos(size.x(), size.y()); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QRectF size;
|
QRectF size;
|
||||||
int artWidth;
|
int artWidth;
|
||||||
|
|
|
@ -79,6 +79,7 @@ public:
|
||||||
if(albumArt)
|
if(albumArt)
|
||||||
{
|
{
|
||||||
albumArt->setParentItem(view);
|
albumArt->setParentItem(view);
|
||||||
|
albumArt->position();
|
||||||
albumArt->show();
|
albumArt->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -796,10 +796,6 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
||||||
QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
|
QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
|
||||||
int branches)
|
int branches)
|
||||||
{
|
{
|
||||||
if(strcmp(element->tag->name, "mv") == 0)
|
|
||||||
{
|
|
||||||
int x = 5;
|
|
||||||
}
|
|
||||||
if(!conditional)
|
if(!conditional)
|
||||||
{
|
{
|
||||||
return info.device()->data(QString(element->tag->name));
|
return info.device()->data(QString(element->tag->name));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue