summaryrefslogtreecommitdiff
path: root/metawatch/qml
diff options
context:
space:
mode:
Diffstat (limited to 'metawatch/qml')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml3
-rw-r--r--metawatch/qml/metawatch-digital-config.qml33
2 files changed, 0 insertions, 36 deletions
diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
index 3b6c44e..4d5d477 100644
--- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
+++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWScrollable.qml
@@ -14,11 +14,8 @@ Flickable {
contentHeight: contentItem.childrenRect.height
function scrollDown() {
- console.log(contentHeight + " " + height);
- console.log(childrenRect.height);
var maxY = Math.max(0, contentHeight - height);
var newContentY = contentY + 96/3;
- console.log(maxY + " " + newContentY);
if (newContentY > maxY) {
contentY = maxY; // Never overscroll.
diff --git a/metawatch/qml/metawatch-digital-config.qml b/metawatch/qml/metawatch-digital-config.qml
index 72912f4..98185ef 100644
--- a/metawatch/qml/metawatch-digital-config.qml
+++ b/metawatch/qml/metawatch-digital-config.qml
@@ -96,37 +96,4 @@ Column {
source: "image://theme/meegotouch-combobox-indicator" + (theme.inverted ? "-inverted" : "")
}
}
-
- Item {
- id: autoBacklightItem
- width: parent.width
- height: UiConstants.ListItemHeightDefault
-
- GConfKey {
- id: autoBacklightKey
- key: configKey + "/auto-backlight"
- }
- Column {
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
-
- Label {
- text: qsTr("Automatic backlight")
- font: UiConstants.TitleFont
- }
-
- Label {
- text: qsTr("Turn backlight on during notifications")
- font: UiConstants.SubtitleFont
- color: UiConstants.FieldLabelColor
- }
- }
- CheckBox {
- id: autoBacklightSwitch
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- checked: autoBacklightKey.value
- onCheckedChanged: autoBacklightKey.value = checked
- }
- }
}