~zsombi/ubuntu-ui-toolkit/labelThemingFix

« back to all changes in this revision

Viewing changes to examples/ubuntu-ui-toolkit-gallery/PageHeaders.qml

  • Committer: Tarmac
  • Author(s): Tim Peeters
  • Date: 2016-02-26 11:38:24 UTC
  • mfrom: (1732.9.66 60-scectionScrolling)
  • Revision ID: tarmac-20160226113824-68ud6a1kcgsy7ha3
Sections scrolling and keyboard navigation. Fixes: https://bugs.launchpad.net/bugs/1465048, https://bugs.launchpad.net/bugs/1489591.

Approved by ubuntu-sdk-build-bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                iconName: "edit"
45
45
                text: "Edit"
46
46
                onTriggered: page.header = editHeader
 
47
            },
 
48
            Action {
 
49
                iconName: standardHeader.extension === sections
 
50
                          ? "media-playback-stop"
 
51
                          : "filters"
 
52
                text: "Sections"
 
53
                onTriggered: {
 
54
                    if (standardHeader.extension) {
 
55
                        standardHeader.extension = null;
 
56
                    } else {
 
57
                        standardHeader.extension = sections;
 
58
                    }
 
59
                }
47
60
            }
48
61
        ]
 
62
 
 
63
        Sections {
 
64
            id: sections
 
65
            visible: standardHeader.extension === sections
 
66
            anchors {
 
67
                left: parent.left
 
68
                right: parent.right
 
69
                bottom: parent.bottom
 
70
            }
 
71
            model: ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
 
72
                    "ten", "eleven", "twelve", "thirteen"]
 
73
        }
 
74
 
 
75
 
49
76
    }
50
77
 
51
78
    PageHeader {