summaryrefslogtreecommitdiff
path: root/metawatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-03-28 18:09:32 +0100
committerJavier S. Pedro <maemo@javispedro.com>2013-03-28 18:09:32 +0100
commitdba92fe2ecb6190f4fa645dd2b9aae6323384178 (patch)
treed373b76e1a8c6284b970bb1067921bd47f7c5b72 /metawatch
parent94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac (diff)
downloadsowatch-dba92fe2ecb6190f4fa645dd2b9aae6323384178.tar.gz
sowatch-dba92fe2ecb6190f4fa645dd2b9aae6323384178.zip
add new settings
Diffstat (limited to 'metawatch')
-rw-r--r--metawatch/metawatch.cpp10
-rw-r--r--metawatch/metawatch.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/metawatch/metawatch.cpp b/metawatch/metawatch.cpp
index bd7d852..ca6eaa6 100644
--- a/metawatch/metawatch.cpp
+++ b/metawatch/metawatch.cpp
@@ -101,7 +101,7 @@ MetaWatch::MetaWatch(ConfigKey* settings, QObject* parent) :
_dayMonthOrder = settings->value("day-month-order", false).toBool();
_showSeconds = settings->value("show-seconds", false).toBool();
_separationLines = false; // Seems to be v2 UI only
- _autoBackligt = settings->value("auto-backlight", false).toBool();
+ _autoBacklight = settings->value("auto-backlight", false).toBool();
_buttonNames << "A" << "B" << "C" << "D" << "E" << "F";
@@ -431,7 +431,7 @@ void MetaWatch::updateWatchProperties()
optBits |= 1 << 2;
if (_separationLines)
optBits |= 1 << 3;
- if (_autoBackligt)
+ if (_autoBacklight)
optBits |= 1 << 4;
qDebug() << "Setting watch properties to" << optBits;
@@ -707,6 +707,12 @@ void MetaWatch::settingChanged(const QString &key)
} else if (key == "24h-mode") {
_24hMode = _settings->value(key, false).toBool();
if (isConnected()) updateWatchProperties();
+ } else if (key == "show-seconds") {
+ _showSeconds = _settings->value(key, false).toBool();
+ if (isConnected()) updateWatchProperties();
+ } else if (key == "auto-backlight") {
+ _autoBacklight = _settings->value(key, false).toBool();
+ if (isConnected()) updateWatchProperties();
}
}
diff --git a/metawatch/metawatch.h b/metawatch/metawatch.h
index 2fd2794..2a86f5c 100644
--- a/metawatch/metawatch.h
+++ b/metawatch/metawatch.h
@@ -152,7 +152,7 @@ protected:
bool _dayMonthOrder : 1;
bool _showSeconds : 1;
bool _separationLines : 1;
- bool _autoBackligt : 1;
+ bool _autoBacklight : 1;
// Notifications: timers
QTimer* _idleTimer;