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
Tobias Hunger
qt-creator
Commits
b248bd28
Commit
b248bd28
authored
Sep 29, 2009
by
hjk
Browse files
debugger: fix adding nested watcher
parent
2548ca06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/watchwindow.cpp
View file @
b248bd28
...
...
@@ -91,13 +91,13 @@ public:
QString
exp
=
model
->
data
(
index
,
ExpressionRole
).
toString
();
model
->
setData
(
index
,
value
,
Qt
::
EditRole
);
if
(
index
.
column
()
==
1
)
{
//
t
he value column
//
T
he value column
.
theDebuggerAction
(
AssignValue
)
->
trigger
(
QString
(
exp
+
'='
+
value
));
}
else
if
(
index
.
column
()
==
2
)
{
//
t
he type column
//
T
he type column
.
theDebuggerAction
(
AssignType
)
->
trigger
(
QString
(
exp
+
'='
+
value
));
}
else
if
(
index
.
column
()
==
0
)
{
//
t
he watcher name column
//
T
he watcher name column
.
theDebuggerAction
(
RemoveWatchExpression
)
->
trigger
(
exp
);
theDebuggerAction
(
WatchExpression
)
->
trigger
(
value
);
}
...
...
@@ -204,7 +204,7 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
QModelIndex
mi0
=
idx
.
sibling
(
idx
.
row
(),
0
);
QModelIndex
mi1
=
idx
.
sibling
(
idx
.
row
(),
1
);
QModelIndex
mi2
=
idx
.
sibling
(
idx
.
row
(),
2
);
QString
exp
=
model
()
->
data
(
mi0
).
toString
();
QString
exp
=
model
()
->
data
(
mi0
,
ExpressionRole
).
toString
();
QString
type
=
model
()
->
data
(
mi2
).
toString
();
QStringList
alternativeFormats
=
...
...
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