OTHER: Fix graphic glitch if PLAYPAUS is less than 9 pixels high
This commit is contained in:
parent
866833ebec
commit
5c4a080fbf
3 changed files with 16 additions and 14 deletions
|
|
@ -39,12 +39,16 @@ PlayStatus::setPixmaps (Skin *skin)
|
|||
m_pixmap_pause = skin->getItem (Skin::PIC_PAUSE);
|
||||
m_pixmap_stop = skin->getItem (Skin::PIC_STOP);
|
||||
|
||||
setFixedSize(11, m_pixmap_play.height ());
|
||||
update ();
|
||||
}
|
||||
|
||||
void
|
||||
PlayStatus::setStatus (Xmms::Playback::Status status)
|
||||
{
|
||||
if (m_status == status)
|
||||
return;
|
||||
|
||||
m_status = status;
|
||||
update ();
|
||||
}
|
||||
|
|
@ -71,7 +75,7 @@ PlayStatus::paintEvent (QPaintEvent *event)
|
|||
|
||||
QPainter p;
|
||||
p.begin (this);
|
||||
p.drawPixmap (rect (), pixmap, pixmap.rect ());
|
||||
p.drawPixmap (rect (), pixmap);
|
||||
p.end ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue