summaryrefslogtreecommitdiffstats
path: root/src/qdoc/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/config.cpp')
-rw-r--r--src/qdoc/config.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/qdoc/config.cpp b/src/qdoc/config.cpp
index 0d3a5e945..e41810f7b 100644
--- a/src/qdoc/config.cpp
+++ b/src/qdoc/config.cpp
@@ -309,16 +309,20 @@ void Config::load(const QString &fileName)
}
/*!
- Joins all the strings in \a values into a single string with the
- individual \a values separated by ' '. Then it inserts the result
- into the string list map with \a var as the key.
-
- It also inserts the \a values string list into a separate map,
- also with \a var as the key.
+ Sets the \a values of a configuration variable \a var from a string list.
*/
void Config::setStringList(const QString &var, const QStringList &values)
{
- configVars_.insert(var,ConfigVar(var, values, QDir::currentPath()));
+ configVars_.replace(var, ConfigVar(var, values, QDir::currentPath()));
+}
+
+/*!
+ Adds the \a values from a string list to the configuration variable \a var.
+ Existing value(s) are kept.
+*/
+void Config::insertStringList(const QString &var, const QStringList &values)
+{
+ configVars_.insert(var, ConfigVar(var, values, QDir::currentPath()));
}
/*!