diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/converters.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/converters.h b/lib/converters.h index 0b37fc48..1a8f3cfa 100644 --- a/lib/converters.h +++ b/lib/converters.h @@ -325,6 +325,12 @@ namespace QMatrixClient : QStringLiteral("false")); } + inline void addTo(QUrlQuery& q, const QString& k, const QStringList& vals) + { + for (const auto& v: vals) + q.addQueryItem(k, v); + } + // This one is for types that don't have isEmpty() template <typename ValT, bool Force = true, typename = bool> struct AddNode |