summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggerprotocol.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-12-15 09:06:00 +0100
committerhjk <hjk@theqtcompany.com>2016-04-04 13:01:58 +0000
commitc8c6c8ec50f3d9f18a55c26350a4e3f80117fd88 (patch)
treeea3871609ef0728302cb742a18bebeff45503e87 /src/plugins/debugger/debuggerprotocol.cpp
parent4996be216dae565c09ce74599492f9bd935441e8 (diff)
downloadqt-creator-c8c6c8ec50f3d9f18a55c26350a4e3f80117fd88.tar.gz
Debugger: Replace cdb output encoding enum by strings
Change-Id: I05225f5be61fdaa448b9991b14056e89228c26a4 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
-rw-r--r--src/plugins/debugger/debuggerprotocol.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp
index b772452b77..6bfd17f220 100644
--- a/src/plugins/debugger/debuggerprotocol.cpp
+++ b/src/plugins/debugger/debuggerprotocol.cpp
@@ -877,5 +877,27 @@ QString DebuggerEncoding::toString() const
return QString::fromLatin1("%1:%2:%3").arg(type).arg(size).arg(quotes);
}
+DebuggerDisplay::DebuggerDisplay(const QByteArray &data)
+{
+ const QByteArrayList l = data.split(':');
+
+ const QByteArray &t = l.at(0);
+ if (t == "latin1") {
+ type = DisplayLatin1String;
+ } else if (t == "utf8") {
+ type = DisplayUtf8String;
+ } else if (t == "utf16") {
+ type = DisplayUtf16String;
+ } else if (t == "imagedata") {
+ type = DisplayImageData;
+ } else if (t == "imagefile") {
+ type = DisplayImageFile;
+ } else if (t == "plot") {
+ type = DisplayPlotData;
+ }
+ if (l.size() > 1 && l.at(1) == "separate")
+ separate = true;
+}
+
} // namespace Internal
} // namespace Debugger