summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefPrivate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings/qPrefPrivate.cpp')
-rw-r--r--core/settings/qPrefPrivate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/settings/qPrefPrivate.cpp b/core/settings/qPrefPrivate.cpp
index 6e835b92f..8cbbe932e 100644
--- a/core/settings/qPrefPrivate.cpp
+++ b/core/settings/qPrefPrivate.cpp
@@ -9,6 +9,12 @@ void qPrefPrivate::copy_txt(const char **name, const QString &string)
*name = copy_qstring(string);
}
+QString keyFromGroupAndName(QString group, QString name)
+{
+ QString slash = (group.endsWith('/') || name.startsWith('/')) ? "" : "/";
+ return group + slash + name;
+}
+
void qPrefPrivate::propSetValue(const QString &key, const QVariant &value, const QVariant &defaultValue)
{
// REMARK: making s static (which would be logical) does NOT work