1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

Try disabling GridView item scaling.

This commit is contained in:
Teo Mrnjavac
2013-08-04 16:34:53 +02:00
parent c64ada1bcf
commit f50f9d3ac2

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 = 160;
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 = 160;
const int itemsPerRow = qMax( 1, qFloor( rectWidth / itemWidth ) );
const int remSpace = rectWidth - ( itemsPerRow * itemWidth );