diff options
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()); |