summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-17 16:55:37 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-17 16:55:37 +0200
commiteb54f3795fb276046c1a4c0e81fb5426f0659550 (patch)
tree50996e34da089a79475af934a4f8e1775813e1fa
parent400273f9a328b16e1a8b9e7dde7cc071ed285c0f (diff)
downloadsink-eb54f3795fb276046c1a4c0e81fb5426f0659550.tar.gz
sink-eb54f3795fb276046c1a4c0e81fb5426f0659550.zip
Fixed last commit
-rw-r--r--common/domain/applicationdomaintype.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index 3aadc2c..b0be729 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -49,8 +49,16 @@ QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDom
49 } 49 }
50 d << " " << "Resource: " << "\t" << type.resourceInstanceIdentifier() << "\n"; 50 d << " " << "Resource: " << "\t" << type.resourceInstanceIdentifier() << "\n";
51 for (const auto &property : properties) { 51 for (const auto &property : properties) {
52 //We limit the maximum length of the property for large blob properties. 52 const auto value = type.getProperty(property);
53 d << " " << property << "\t" << type.getProperty(property).mid(0, 75) << "\n"; 53 if (value.canConvert<QString>()) {
54 //We limit the maximum length of the property for large blob properties.
55 d << " " << property << "\t" << value.toString().mid(0, 75) << "\n";
56 } else if (value.canConvert<QByteArray>()) {
57 //We limit the maximum length of the property for large blob properties.
58 d << " " << property << "\t" << value.toByteArray().mid(0, 75) << "\n";
59 } else {
60 d << " " << property << "\t" << value << "\n";
61 }
54 } 62 }
55 d << ")"; 63 d << ")";
56 return d; 64 return d;