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
69fb75b6
Commit
69fb75b6
authored
Aug 18, 2010
by
hjk
Browse files
debugger: fix 2.x regression: allow assignment to structure members
parent
991aceb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchhandler.cpp
View file @
69fb75b6
...
...
@@ -602,8 +602,21 @@ QVariant WatchModel::data(const QModelIndex &idx, int role) const
break
;
}
case
ExpressionRole
:
return
data
.
exp
;
case
ExpressionRole
:
{
if
(
!
data
.
exp
.
isEmpty
())
return
data
.
exp
;
if
(
!
data
.
addr
.
isEmpty
()
&&
!
data
.
type
.
isEmpty
())
{
bool
ok
;
const
quint64
addr
=
data
.
addr
.
toULongLong
(
&
ok
,
16
);
if
(
ok
&&
addr
)
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
INameRole
:
return
data
.
iname
;
...
...
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