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
be0dfb8c
Commit
be0dfb8c
authored
Apr 12, 2010
by
hjk
Browse files
debugger: slightly better wording of action names when disabling multiple
breakpoints
parent
ea808410
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/breakwindow.cpp
View file @
be0dfb8c
...
...
@@ -196,7 +196,14 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
QModelIndex
idx0
=
(
si
.
size
()
?
si
.
front
()
:
QModelIndex
());
QModelIndex
idx2
=
idx0
.
sibling
(
idx0
.
row
(),
2
);
bool
enabled
=
si
.
isEmpty
()
||
itemModel
->
data
(
idx0
,
Qt
::
UserRole
).
toBool
();
const
QString
str5
=
enabled
?
tr
(
"Disable Breakpoint"
)
:
tr
(
"Enable Breakpoint"
);
const
QString
str5
=
si
.
size
()
>
1
?
enabled
?
tr
(
"Disable Selected Breakpoints"
)
:
tr
(
"Enable Selected Breakpoints"
)
:
enabled
?
tr
(
"Disable Breakpoint"
)
:
tr
(
"Enable Breakpoint"
);
QAction
*
toggleEnabledAction
=
new
QAction
(
str5
,
&
menu
);
toggleEnabledAction
->
setEnabled
(
si
.
size
()
>
0
);
...
...
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