~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-yakkety-landing-092

« back to all changes in this revision

Viewing changes to Ubuntu/Settings/Menus/ButtonMenu.qml

  • Committer: Nick Dedekind
  • Date: 2014-07-29 15:05:53 UTC
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: nicholas.dedekind@gmail.com-20140729150553-tqmvzd5u4kyw7yg4
more visual tweaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import QtQuick 2.0
20
20
import Ubuntu.Components 0.1
21
 
import Ubuntu.Components.ListItems 0.1 as ListItem
22
 
 
23
 
ListItem.Standard {
24
 
    property alias buttonText: button.text
25
 
 
26
 
    iconFrame: false
27
 
    Component.onCompleted: button.clicked.connect(clicked)
28
 
 
29
 
    control: Button {
30
 
        id: button
31
 
        objectName: "button"
32
 
        width: Math.max(units.gu(5), implicitWidth)
 
21
 
 
22
StandardMenu {
 
23
    id: menu
 
24
    property string buttonText
 
25
 
 
26
    component: Component {
 
27
        Button {
 
28
            id: button
 
29
            objectName: "button"
 
30
            text: menu.buttonText
 
31
            width: Math.max(units.gu(5), implicitWidth)
 
32
 
 
33
            onClicked: menu.clicked
 
34
        }
33
35
    }
34
36
}