mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 04:43:06 +01:00
Make GridView items bigger.
This commit is contained in:
parent
b472db0191
commit
9f3046ddc6
@ -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( 120 );
|
||||
const int itemWidth = scaledX( 140 );
|
||||
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( 120 );
|
||||
const int itemWidth = scaledX( 140 );
|
||||
const int itemsPerRow = qMax( 1, qFloor( rectWidth / itemWidth ) );
|
||||
|
||||
const int remSpace = rectWidth - ( itemsPerRow * itemWidth );
|
||||
|
Loading…
x
Reference in New Issue
Block a user