1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 10:05:32 +02:00

Base size of GridView items changed from 160 to 120.

This commit is contained in:
Teo Mrnjavac
2013-07-31 16:40:46 +02:00
parent 1d2457c666
commit dc34b228f0

View File

@@ -248,7 +248,7 @@ GridView::verifySize()
scrollbar = 0; //don't count it any more
const int rectWidth = contentsRect().width() - scrollbar - 3;
const int itemWidth = scaledX( 160 );
const int itemWidth = scaledX( 120 );
const int itemsPerRow = qMax( 1, qFloor( rectWidth / itemWidth ) );
const int overlapRows = m_model->rowCount( QModelIndex() ) % itemsPerRow;
@@ -288,7 +288,7 @@ GridView::layoutItems()
scrollbar = 0; //don't count it any more
const int rectWidth = contentsRect().width() - scrollbar - 3;
const int itemWidth = scaledX( 160 );
const int itemWidth = scaledX( 120 );
const int itemsPerRow = qMax( 1, qFloor( rectWidth / itemWidth ) );
const int remSpace = rectWidth - ( itemsPerRow * itemWidth );