diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 16:07:53 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 16:07:53 +0900 |
commit | 9993a0ea50165fd70f75b68c329ea045fb51d7f4 (patch) | |
tree | 6c56bc17799273cb3693a2b435d69e361e2c04ff /lib/events/event.cpp | |
parent | f3221451ce29c3b571e08fe3ce51a49f252029e5 (diff) | |
download | libquotient-9993a0ea50165fd70f75b68c329ea045fb51d7f4.tar.gz libquotient-9993a0ea50165fd70f75b68c329ea045fb51d7f4.zip |
Support dumping Events to QDebug
Diffstat (limited to 'lib/events/event.cpp')
-rw-r--r-- | lib/events/event.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp index fd6e3939..c98dfbb6 100644 --- a/lib/events/event.cpp +++ b/lib/events/event.cpp @@ -77,3 +77,8 @@ const QJsonObject Event::unsignedJson() const { return fullJson()[UnsignedKeyL].toObject(); } + +void Event::dumpTo(QDebug dbg) const +{ + dbg << QJsonDocument(contentJson()).toJson(QJsonDocument::Compact); +} |