diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 18:50:23 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 18:50:23 +0200 |
commit | bc5b70046e84c6e5a33a19bd2e64e626fdf0579e (patch) | |
tree | 49452d6add3626d527b19298acd1587de167350b /libsowatch/gconfkey.cpp | |
parent | c7c6a2c596637fd4942c7fb80341ca2ef7b47808 (diff) | |
download | sowatch-bc5b70046e84c6e5a33a19bd2e64e626fdf0579e.tar.gz sowatch-bc5b70046e84c6e5a33a19bd2e64e626fdf0579e.zip |
first UI editable settings!
Diffstat (limited to 'libsowatch/gconfkey.cpp')
-rw-r--r-- | libsowatch/gconfkey.cpp | 10 |
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()); |