diff options
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 12 |
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; |