mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Fixed album spacing on non-X11.
This commit is contained in:
@@ -186,7 +186,11 @@ AlbumView::resizeEvent( QResizeEvent* event )
|
|||||||
{
|
{
|
||||||
QListView::resizeEvent( event );
|
QListView::resizeEvent( event );
|
||||||
|
|
||||||
|
#ifdef Q_WS_X11
|
||||||
int scrollbar = !verticalScrollBar()->isVisible() ? verticalScrollBar()->rect().width() : 0;
|
int scrollbar = !verticalScrollBar()->isVisible() ? verticalScrollBar()->rect().width() : 0;
|
||||||
|
#else
|
||||||
|
int scrollbar = verticalScrollBar()->rect().width();
|
||||||
|
#endif
|
||||||
int rectWidth = contentsRect().width() - scrollbar - 16 - 3;
|
int rectWidth = contentsRect().width() - scrollbar - 16 - 3;
|
||||||
QSize itemSize = m_proxyModel->data( QModelIndex(), Qt::SizeHintRole ).toSize();
|
QSize itemSize = m_proxyModel->data( QModelIndex(), Qt::SizeHintRole ).toSize();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user