diff options
author | Minijackson <minijackson@riseup.net> | 2018-02-23 10:02:50 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-02-26 14:42:42 +0100 |
commit | 80debf90c987746d8a45560c2b9e1f4c61f69fd3 (patch) | |
tree | 5fd7cc2cc4f8f7b9b43daa8f642f91aeb3340ed0 /framework/src | |
parent | 0337b02036788036a262caf43cf6333c95056cd8 (diff) | |
download | kube-80debf90c987746d8a45560c2b9e1f4c61f69fd3.tar.gz kube-80debf90c987746d8a45560c2b9e1f4c61f69fd3.zip |
Switch to QVariantList + add logging everywhere!
Diffstat (limited to 'framework/src')
-rw-r--r-- | framework/src/sinkfabric.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index b2281a5d..8492f272 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -152,11 +152,13 @@ public: | |||
152 | QVariantMap message; | 152 | QVariantMap message; |
153 | if (notification.type == Sink::Notification::Warning) { | 153 | if (notification.type == Sink::Notification::Warning) { |
154 | message["type"] = "warning"; | 154 | message["type"] = "warning"; |
155 | QStringList entities; | 155 | |
156 | QVariantList entities; | ||
156 | for(const auto &entity : notification.entities) { | 157 | for(const auto &entity : notification.entities) { |
157 | entities << QString{entity}; | 158 | entities << entity; |
158 | } | 159 | } |
159 | message["entities"] = entities; | 160 | message["entities"] = entities; |
161 | |||
160 | message["resource"] = QString{notification.resource}; | 162 | message["resource"] = QString{notification.resource}; |
161 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { | 163 | if (notification.code == Sink::ApplicationDomain::TransmissionError) { |
162 | message["message"] = QObject::tr("Failed to send message."); | 164 | message["message"] = QObject::tr("Failed to send message."); |