1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-01 18:04:05 +02:00

replace GridView with QmlGridView in FlexibleView

This commit is contained in:
Michael Zanetti
2012-12-16 16:27:53 +01:00
parent 9374b3b50b
commit e2d664704b
5 changed files with 17 additions and 8 deletions

View File

@@ -20,6 +20,8 @@ Rectangle {
cellHeight: cellWidth
cellWidth: calculateCoverSize(gridView.width - 3)
cacheBuffer: cellHeight * 5
function calculateCoverSize(rectWidth) {
var itemWidth = fontMetrics.width;
var itemsPerRow = Math.max( 1, Math.floor( rectWidth / itemWidth ) );