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

« back to all changes in this revision

Viewing changes to applications/settings/modules/web/contents/ui/Web.qml

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-09-17 14:08:58 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130917140858-wv7n3z6t95iy1fs9
Tags: 1:0.5-0ubuntu1
* New upstream release LP: #1227602
* Use epoch to sync with upstream version number
* Build-dep on libxcursor-dev
* Add kubuntu_no_contourd.diff to disable contourd from building,
  does not compile with 4.11 and not used by default
* Depend on renamed package ksplash-theme-active
* Add kubuntu_no_dirmodel.diff to prevert compile of dirmodel,
  included in kde-runtime 4.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
            maximumValue: 24
133
133
            stepSize: 1
134
134
            anchors { left: parent.horizontalCenter; right: parent.right; verticalCenter: parent.verticalCenter; }
135
 
            Component.onCompleted: value = browserConfig.readEntry("fontSizeCorrection");
 
135
            Component.onCompleted: {
 
136
                var fontSizeCorrection = parseFloat(browserConfig.readEntry("fontSizeCorrection"));
 
137
                if (fontSizeCorrection > 0) {
 
138
                    value = fontSizeCorrection;
 
139
                }
 
140
            }
136
141
            onValueChanged: {
137
142
                var s = theme.defaultFont.pointSize + fontSizeSlider.value;
138
143
                browserConfig.writeEntry("fontSizeCorrection", fontSizeSlider.value);
228
233
 
229
234
    }
230
235
 
 
236
    Item {
 
237
        id: mobileItem
 
238
        anchors { top: pluginsItem.bottom; left: parent.left; right: parent.right; topMargin: 48; }
 
239
 
 
240
        PlasmaComponents.Label {
 
241
            anchors { right: parent.horizontalCenter; verticalCenter: parent.verticalCenter; rightMargin: 12; }
 
242
            text: i18n("Prefer mobile websites:")
 
243
        }
 
244
 
 
245
        PlasmaComponents.Switch {
 
246
            checked: true
 
247
            property string configKey: "preferMobile"
 
248
            anchors { left: parent.horizontalCenter; verticalCenter: parent.verticalCenter; }
 
249
            onClicked: browserConfig.writeEntry(configKey, checked);
 
250
            Component.onCompleted: {
 
251
                checked = browserConfig.readEntry(configKey);
 
252
                print("prefer mobile websites: " + configKey + " :: " + checked);
 
253
            }
 
254
        }
 
255
 
 
256
    }
 
257
 
231
258
    PlasmaComponents.Button {
232
259
        text: i18n("Clear history")
233
 
        anchors { left: parent.horizontalCenter; top: pluginsItem.bottom; topMargin: 32; }
 
260
        anchors { left: parent.horizontalCenter; top: mobileItem.bottom; topMargin: 32; }
234
261
        onClicked: historyConfig.writeEntry("history", []);
235
262
    }
236
263