Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e1c8bb40
Commit
e1c8bb40
authored
Oct 15, 2009
by
hjk
Browse files
debugger: move adding the double quotes for valueencoding==7 to the host side
parent
8dc369bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchutils.cpp
View file @
e1c8bb40
...
...
@@ -432,10 +432,11 @@ QString decodeData(const QByteArray &ba, int encoding)
return
quoteUnprintableLatin1
(
QByteArray
::
fromBase64
(
ba
));
}
case
7
:
{
// %04x endoded 16 bit data
const
QChar
doubleQuote
(
QLatin1Char
(
'"'
));
const
QByteArray
decodedBa
=
QByteArray
::
fromHex
(
ba
);
//qDebug() << quoteUnprintableLatin1(decodedBa) << "\n\n";
return
QString
::
fromUtf16
(
reinterpret_cast
<
const
ushort
*>
(
decodedBa
.
data
()),
decodedBa
.
size
()
/
2
);
return
doubleQuote
+
QString
::
fromUtf16
(
reinterpret_cast
<
const
ushort
*>
(
decodedBa
.
data
()),
decodedBa
.
size
()
/
2
)
+
doubleQuote
;
}
}
return
QCoreApplication
::
translate
(
"Debugger"
,
"<Encoding error>"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment