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
544aea1a
Commit
544aea1a
authored
Apr 16, 2009
by
hjk
Browse files
debugger: watcher creation revisited
parent
e2ef47bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggeractions.cpp
View file @
544aea1a
...
...
@@ -158,7 +158,7 @@ DebuggerSettings *DebuggerSettings::instance()
instance
->
insertItem
(
UseDebuggingHelpers
,
item
);
item
->
setDefaultValue
(
true
);
item
->
setSettingsKey
(
"DebugMode"
,
"UseDebuggingHelper"
);
item
->
setText
(
tr
(
"Use
D
ebugging
H
elper"
));
item
->
setText
(
tr
(
"Use
d
ebugging
h
elper"
));
item
->
setCheckable
(
true
);
item
->
setDefaultValue
(
true
);
...
...
src/plugins/debugger/watchhandler.cpp
View file @
544aea1a
...
...
@@ -932,7 +932,6 @@ QString WatchHandler::watcherName(const QString &exp)
void
WatchHandler
::
watchExpression
(
const
QString
&
exp
)
{
// FIXME: 'exp' can contain illegal characters
//MODEL_DEBUG("WATCH: " << exp);
m_watchers
[
exp
]
=
watcherCounter
++
;
WatchData
data
;
data
.
exp
=
exp
;
...
...
src/plugins/debugger/watchwindow.cpp
View file @
544aea1a
...
...
@@ -96,7 +96,7 @@ public:
}
else
if
(
index
.
column
()
==
0
)
{
// the watcher name column
theDebuggerAction
(
RemoveWatchExpression
)
->
trigger
(
exp
);
theDebuggerAction
(
WatchExpression
)
->
trigger
(
lineEdit
->
text
()
);
theDebuggerAction
(
WatchExpression
)
->
trigger
(
value
);
}
}
...
...
@@ -175,8 +175,6 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
QModelIndex
idx
=
indexAt
(
ev
->
pos
());
QModelIndex
mi0
=
idx
.
sibling
(
idx
.
row
(),
0
);
QString
exp
=
model
()
->
data
(
mi0
).
toString
();
QModelIndex
mi1
=
idx
.
sibling
(
idx
.
row
(),
0
);
QString
value
=
model
()
->
data
(
mi1
).
toString
();
menu
.
addSeparator
();
int
type
=
(
m_type
==
LocalsType
)
?
WatchExpression
:
RemoveWatchExpression
;
...
...
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