Debugger: Replace DebuggerDisplay enum by strings

Easier to coordinate between dumpers and watchhandler

Change-Id: Ide191a5786dc04ef22c3e9c8b0bec39f8f8c0f1d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-04-08 00:49:22 +02:00
parent 76a8e89ec7
commit be91d50e43
8 changed files with 62 additions and 143 deletions

View File

@@ -877,27 +877,5 @@ 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