~fboucault/camera-app/click_autopilot_add_deps

« back to all changes in this revision

Viewing changes to IconButton.qml

  • Committer: CI Train Bot
  • Author(s): Ugo Riboni
  • Date: 2015-02-04 20:35:40 UTC
  • mfrom: (425.7.13 camera-app-editor)
  • Revision ID: ci-train-bot@canonical.com-20150204203540-zdd2ut1x686tlirn
Add photo editor feature using the component from ubuntu-ui-extras. Fixes: #1368787

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
AbstractButton {
21
21
    id: button
22
22
 
23
 
    property alias iconName: icon.name
 
23
    property string iconName
24
24
    property alias iconColor: icon.color
25
25
 
26
26
    width: units.gu(5)
38
38
        width: units.gu(2.5)
39
39
        height: width
40
40
        color: "white"
 
41
        name: action ? action.iconName : button.iconName
 
42
        opacity: action ? (action.enabled ? 1.0 : 0.5) : 1.0
41
43
    }
42
44
}