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
Marco Bubke
flatpak-qt-creator
Commits
0e54b6ca
Commit
0e54b6ca
authored
Aug 18, 2010
by
hjk
Browse files
debugger: fix assigning new values to structure members
parent
4c085581
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchhandler.cpp
View file @
0e54b6ca
...
...
@@ -644,8 +644,18 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
break
;
}
case
LocalsExpressionRole
:
return
data
.
exp
;
case
LocalsExpressionRole
:
{
if
(
!
data
.
exp
.
isEmpty
())
return
data
.
exp
;
quint64
addr
=
data
.
coreAddress
();
if
(
addr
&&
!
data
.
type
.
isEmpty
())
return
QString
(
"*(%1*)%2"
).
arg
(
data
.
type
).
arg
(
addr
);
WatchItem
*
parent
=
item
->
parent
;
if
(
parent
&&
!
parent
->
exp
.
isEmpty
())
return
QString
(
"(%1).%2"
)
.
arg
(
QString
::
fromLatin1
(
parent
->
exp
)).
arg
(
data
.
name
);
return
QVariant
();
}
case
LocalsINameRole
:
return
data
.
iname
;
...
...
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