summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-05-24 10:54:24 +0200
committerhjk <hjk121@nokiamail.com>2013-05-24 12:56:35 +0200
commitd165b66bc9e7a7fdbb926fa617ebdef874bc9126 (patch)
treedc3d7f3b441dbdab53e846d2d1da8477807fafcd /src
parent0a471cc4fd4d4a7549038e7bbb27074e6cadb5a3 (diff)
downloadqt-creator-d165b66bc9e7a7fdbb926fa617ebdef874bc9126.tar.gz
Debugger: Introduce convenience GdbMi::{toUtf8,toLatin1} functions
Change-Id: I10ec8cdca5aa2c54a5ed557b3c2ddbfd3855c796 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggerprotocol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.h b/src/plugins/debugger/debuggerprotocol.h
index cf20a30ad4..dd668e86ad 100644
--- a/src/plugins/debugger/debuggerprotocol.h
+++ b/src/plugins/debugger/debuggerprotocol.h
@@ -124,6 +124,8 @@ public:
QByteArray toString(bool multiline = false, int indent = 0) const;
qulonglong toAddress() const;
int toInt() const { return m_data.toInt(); }
+ QString toUtf8() const { return QString::fromUtf8(m_data); }
+ QString toLatin1() const { return QString::fromLatin1(m_data); }
void fromString(const QByteArray &str);
void fromStringMultiple(const QByteArray &str);