diff options
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
| -rw-r--r-- | src/plugins/debugger/debuggerprotocol.cpp | 22 |
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 |
