[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/contextview
From: Seb Ruiz <me () sebruiz ! net>
Date: 2007-06-25 13:50:38
Message-ID: 1182779438.284849.32540.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 680130 by seb:
Use QSizeF, set a minimum size for each AlbumItem
M +3 -1 albumbox.cpp
--- trunk/extragear/multimedia/amarok/src/contextview/albumbox.cpp #680129:680130
@@ -64,6 +64,8 @@
b = m_textItem->boundingRect().bottom();
if( m_coverItem && m_coverItem->boundingRect().bottom() > b )
b = m_coverItem->boundingRect().bottom();
+ if( b < 50 )
+ b = 50;
return b;
}
@@ -82,6 +84,6 @@
albumRow->setPos( 0, m_bottom );
m_bottom += albumRow->bottom();
- setContentRectSize( QSize( (int)boundingRect().width(), (int)m_bottom ) );
+ setContentRectSize( QSizeF( boundingRect().width(), m_bottom ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic