aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/converters.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/converters.h b/lib/converters.h
index 543e9496..81d7b6d8 100644
--- a/lib/converters.h
+++ b/lib/converters.h
@@ -166,6 +166,14 @@ struct JsonConverter<QDate> {
};
template <>
+struct JsonConverter<QUrl> : JsonConverter<QString> {
+ static auto dump(const QUrl& url) // Override on top of that for QString
+ {
+ return JsonConverter<QString>::dump(url.toString(QUrl::FullyEncoded));
+ }
+};
+
+template <>
struct JsonConverter<QJsonArray> : public TrivialJsonDumper<QJsonArray> {
static auto load(const QJsonValue& jv) { return jv.toArray(); }
};