~ubuntu-branches/ubuntu/saucy/plasma-mobile/saucy

« back to all changes in this revision

Viewing changes to applications/settings/modules/powermanagement/contents/ui/Power.qml

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-12-22 01:58:11 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20121222015811-zqq9spgc9e0gin07
Tags: 3.0-0ubuntu1
* New upstream release
* Update install files
* Run wrap-and-sort
* Add plasma-mobile-dev
* Drop plasma-active-keyboardcontainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        anchors.centerIn: parent
110
110
        spacing: theme.defaultFont.mSize.height
111
111
 
112
 
        /**TODO: this needs the QML battery plasmoid branch merged in workspace
113
112
        PlasmaExtras.Heading {
114
113
            text: i18n("Brightness")
115
114
            level: 2
122
121
            }
123
122
            property int brightness: pmSource.data["PowerDevil"]["Screen Brightness"]
124
123
            onBrightnessChanged: brightnessSlider.value = brightness
125
 
            
 
124
 
126
125
            PlasmaComponents.Slider {
127
126
                id: brightnessSlider
128
127
                onValueChanged: {
129
128
                    var service = pmSource.serviceForSource("PowerDevil");
130
129
                    var operation = service.operationDescription("setBrightness");
131
 
                    operation.brightness = value;
 
130
 
 
131
                    operation.brightness = Math.round(value*100);
132
132
                    service.startOperationCall(operation);
133
133
                }
134
134
            }
136
136
                text: i18n("100%")
137
137
            }
138
138
        }
139
 
        */
 
139
 
140
140
 
141
141
        PlasmaExtras.Heading {
142
142
            text: i18n("Lock screen")