~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-zesty-2397

« back to all changes in this revision

Viewing changes to plugins/background/SwappableImage.qml

  • Committer: Iain Lane
  • Date: 2013-07-21 19:17:45 UTC
  • mto: This revision was merged to the branch mainline in revision 173.
  • Revision ID: iain.lane@canonical.com-20130721191745-38224w1lus9rkopx
Add a shared GSettings schema for settings-internal settings & make background use it

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    signal clicked
25
25
 
26
26
    property string source
27
 
    property string altSource
28
27
 
29
28
    height: parent.height * 0.4
30
29
    width: parent.width * 0.43
33
32
    UbuntuShape {
34
33
        anchors.fill: parent
35
34
        image: ses
36
 
        onEnabledChanged: {
37
 
            /* Swap images */
38
 
            var tmpImage = source
39
 
            source = altSource
40
 
            altSource = tmpImage
41
 
        }
42
35
    }
43
36
 
44
37
    ShaderEffectSource {