~ubuntu-branches/ubuntu/natty/unity-2d/natty-updates

« back to all changes in this revision

Viewing changes to places/RendererGrid.qml

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2011-01-21 13:11:45 UTC
  • Revision ID: james.westby@ubuntu.com-20110121131145-tn95f1z7mxi4n1bx
Tags: 0.1-0ubuntu4
* add Vcs-Bzr location to debian/control
* update branch location in debian/copyright
* pull in some upstream fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    id: renderer
13
13
 
14
14
    property variant cellRenderer
15
 
    property bool folded: true
 
15
    property bool folded
 
16
    folded: {
 
17
        /* Look for the groupId as a complete word inside the list of expanded groups.
 
18
           Examples of ExpandedGroups hint: "2", "1 3 7", "1 2", etc.
 
19
         */
 
20
        var re = RegExp("\\b%1\\b".arg(renderer.groupId))
 
21
        var expandedGroups = placeEntryModel.entryRendererHints["ExpandedGroups"]
 
22
        return !re.test(expandedGroups)
 
23
    }
16
24
 
17
25
    property int cellWidth: 158
18
26
    property int cellHeight: 76