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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user