Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8175f19f
Commit
8175f19f
authored
Jan 14, 2011
by
hjk
Browse files
qmldebugger: sanitize log message
parent
bdfe2ed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/qml/qmlengine.cpp
View file @
8175f19f
...
...
@@ -679,16 +679,16 @@ void QmlEngine::messageReceived(const QByteArray &message)
if
(
state
()
==
InferiorRunOk
)
notifyInferiorSpontaneousStop
();
QString
logString
=
QString
(
command
);
QString
logString
=
QString
::
fromLatin1
(
command
);
StackFrames
stackFrames
;
QList
<
WatchData
>
watches
;
QList
<
WatchData
>
locals
;
stream
>>
stackFrames
>>
watches
>>
locals
;
logString
+=
QLatin1String
(
" ("
)
+
QString
::
number
(
stack
F
rames
.
size
())
+
QLatin1String
(
"
stack
f
rames)
"
);
logString
+=
QLatin1String
(
" ("
)
+
QString
::
number
(
watches
.
size
())
+
QLatin1String
(
" watches)"
);
logString
+=
QLatin1String
(
" ("
)
+
QString
::
number
(
locals
.
size
())
+
QLatin1String
(
" locals)"
);
logString
+=
tr
(
" (%1
stack
f
rames
)"
).
arg
(
stack
F
rames
.
size
(
));
logString
+=
tr
(
" (%1 watches)"
).
arg
(
watches
.
size
()
);
logString
+=
tr
(
" (%1
lo
a
cals
)"
).
arg
(
locals
.
size
()
);
for
(
int
i
=
0
;
i
!=
stackFrames
.
size
();
++
i
)
stackFrames
[
i
].
level
=
i
+
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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