~aacid/unity8/notime.js

« back to all changes in this revision

Viewing changes to Dash/Apps/ApplicationsFilterGrid.qml

  • Committer: Tarmac
  • Author(s): Albert Astals
  • Date: 2013-11-18 03:07:05 UTC
  • mfrom: (519.1.1 noModelInSignal)
  • Revision ID: tarmac-20131118030705-r6xoxtpf6104rcg5
Dash renderer signals: No need to pass the model up and down

Whoever is listening to the signal has access to the item that emits the signal and has the model right there accessible if needs it.

Approved by PS Jenkins bot, Nick Dedekind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    delegateHeight: units.gu(9.5)
29
29
    verticalSpacing: units.gu(2)
30
30
 
31
 
    signal clicked(int index, var model, real itemY)
32
 
    signal pressAndHold(int index, var model, real itemY)
 
31
    signal clicked(int index, real itemY)
 
32
    signal pressAndHold(int index, real itemY)
33
33
 
34
34
    delegate: Tile {
35
35
        id: tile
54
54
        source: icon
55
55
 
56
56
        onClicked: {
57
 
            filtergrid.clicked(index, filtergrid.model, tile.y)
 
57
            filtergrid.clicked(index, tile.y)
58
58
        }
59
59
 
60
60
        onPressAndHold: {
61
 
            filtergrid.pressAndHold(index, filtergrid.model, tile.y)
 
61
            filtergrid.pressAndHold(index, tile.y)
62
62
        }
63
63
    }
64
64
}