1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Fixed album spacing on non-X11.

This commit is contained in:
Christian Muehlhaeuser 2011-10-28 12:00:17 +02:00
parent e2bb4d7340
commit 205bde833f

View File

@ -186,7 +186,11 @@ AlbumView::resizeEvent( QResizeEvent* event )
{
QListView::resizeEvent( event );
#ifdef Q_WS_X11
int scrollbar = !verticalScrollBar()->isVisible() ? verticalScrollBar()->rect().width() : 0;
#else
int scrollbar = verticalScrollBar()->rect().width();
#endif
int rectWidth = contentsRect().width() - scrollbar - 16 - 3;
QSize itemSize = m_proxyModel->data( QModelIndex(), Qt::SizeHintRole ).toSize();