summaryrefslogtreecommitdiff
path: root/libsowatch/gconfkey.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-09 18:50:23 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-09 18:50:23 +0200
commitbc5b70046e84c6e5a33a19bd2e64e626fdf0579e (patch)
tree49452d6add3626d527b19298acd1587de167350b /libsowatch/gconfkey.cpp
parentc7c6a2c596637fd4942c7fb80341ca2ef7b47808 (diff)
downloadsowatch-bc5b70046e84c6e5a33a19bd2e64e626fdf0579e.tar.gz
sowatch-bc5b70046e84c6e5a33a19bd2e64e626fdf0579e.zip
first UI editable settings!
Diffstat (limited to 'libsowatch/gconfkey.cpp')
-rw-r--r--libsowatch/gconfkey.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libsowatch/gconfkey.cpp b/libsowatch/gconfkey.cpp
index c6becc4..da6aeff 100644
--- a/libsowatch/gconfkey.cpp
+++ b/libsowatch/gconfkey.cpp
@@ -141,6 +141,16 @@ QString GConfKey::key() const
return _key;
}
+void GConfKey::setKey(const QString &key)
+{
+ _key = key;
+ if (_key.endsWith("/")) {
+ _key.chop(1);
+ }
+ emit keyChanged();
+ emit changed();
+}
+
QVariant GConfKey::value() const
{
return value(QString());