~zeller-benjamin/ubuntu-ui-toolkit/mathutils_dont_warn

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Zsombor Egri
  • Date: 2015-11-09 16:03:08 UTC
  • mfrom: (1706.3.18 cppBottomEdgeHint)
  • Revision ID: tarmac-20151109160308-hl5ulbj32dh0wqg2
BottomEdgeHint API changes, deprecating state property, introducing locked property to drive visuals lock and click handling.

Approved by Christian Dywan, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                text: i18n.tr('About')
54
54
                iconName: "info"
55
55
                onTriggered: mainPage.pageStack.addPageToCurrentColumn(mainPage, Qt.resolvedUrl("About.qml"))
 
56
            },
 
57
            Action {
 
58
                text: i18n.tr("Deactivate mouse")
 
59
                iconName: "non-starred"
 
60
                visible: QuickUtils.mouseAttached
 
61
                onTriggered: QuickUtils.mouseAttached = false
 
62
            },
 
63
            Action {
 
64
                text: i18n.tr("Activate mouse")
 
65
                iconName: "starred"
 
66
                visible: !QuickUtils.mouseAttached
 
67
                onTriggered: QuickUtils.mouseAttached = true
56
68
            }
57
69
        ]
58
70
    }
120
132
        }
121
133
        highlightMoveDuration: 0
122
134
    }
 
135
 
 
136
    BottomEdgeHint {
 
137
        flickable: widgetList
 
138
        text: i18n.tr('About')
 
139
        iconName: "info"
 
140
        onClicked: mainPage.pageStack.addPageToCurrentColumn(mainPage, Qt.resolvedUrl("About.qml"))
 
141
    }
123
142
}