~mzanetti/unity8/buttons-in-panel

« back to all changes in this revision

Viewing changes to qml/Dash/CardGrid.qml

  • Committer: Michael Zanetti
  • Date: 2014-12-03 11:57:20 UTC
  • mfrom: (1457.1.1 wallpaper)
  • Revision ID: michael.zanetti@canonical.com-20141203115720-aoxrzmxyyq3stg2x
merge prereq

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        delegate: Item {
56
56
            width: grid.cellWidth
57
57
            height: grid.cellHeight
58
 
            visible: y + height >= root.visibleRangeBegin && y <= root.visibleRangeEnd
59
58
            Loader {
60
59
                id: loader
61
60
                sourceComponent: cardTool.cardComponent
62
61
                anchors.horizontalCenter: parent.horizontalCenter
 
62
                asynchronous: true
63
63
                onLoaded: {
64
64
                    item.objectName = "delegate" + index;
65
65
                    item.width = Qt.binding(function() { return cardTool.cardWidth; });