~mmcg069/totallywired/totallywired

« back to all changes in this revision

Viewing changes to totallywired/qml/Widgets/AlbumsBanner.qml

  • Committer: Matthew McGowan
  • Date: 2012-11-21 10:47:46 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20121121104746-svsv70xp89gxjxtf
tweakage

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    id: bg
24
24
 
25
25
    property int nRows: Math.min(2, Math.ceil(grid.count / Math.floor((width-12)/grid.cellWidth)))
 
26
    property int cellHeight: grid.cellHeight
26
27
    property alias model: grid.model
27
28
 
28
29
    height: nRows > 0 ? nRows * grid.cellHeight : 0