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
0497bdfc
Commit
0497bdfc
authored
Dec 02, 2010
by
hjk
Browse files
debugger: the 'Memory Editor' action does not need to be stored explicitly
parent
9f528528
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/debuggermainwindow.cpp
View file @
0497bdfc
...
...
@@ -150,7 +150,6 @@ public:
DebuggerLanguages
m_previousDebugLanguages
;
DebuggerLanguages
m_activeDebugLanguages
;
QAction
*
m_openMemoryEditorAction
;
ActionContainer
*
m_viewsMenu
;
ActionContainer
*
m_debugMenu
;
...
...
@@ -175,7 +174,6 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *mw)
,
m_changingUI
(
false
)
,
m_previousDebugLanguages
(
AnyLanguage
)
,
m_activeDebugLanguages
(
AnyLanguage
)
,
m_openMemoryEditorAction
(
0
)
,
m_viewsMenu
(
0
)
,
m_debugMenu
(
0
)
,
m_initialized
(
false
)
...
...
@@ -324,14 +322,14 @@ void DebuggerMainWindowPrivate::createViewsMenuItems()
ActionManager
*
am
=
core
->
actionManager
();
Context
globalcontext
(
Core
::
Constants
::
C_GLOBAL
);
m_
openMemoryEditorAction
=
new
QAction
(
this
);
m_
openMemoryEditorAction
->
setText
(
tr
(
"Memory..."
));
connect
(
m_
openMemoryEditorAction
,
SIGNAL
(
triggered
()),
QAction
*
openMemoryEditorAction
=
new
QAction
(
this
);
openMemoryEditorAction
->
setText
(
tr
(
"Memory..."
));
connect
(
openMemoryEditorAction
,
SIGNAL
(
triggered
()),
q
,
SIGNAL
(
memoryEditorRequested
()));
// Add menu items
Command
*
cmd
=
0
;
cmd
=
am
->
registerAction
(
m_
openMemoryEditorAction
,
cmd
=
am
->
registerAction
(
openMemoryEditorAction
,
Core
::
Id
(
"Debugger.Views.OpenMemoryEditor"
),
Core
::
Context
(
Constants
::
C_DEBUGMODE
));
m_viewsMenu
->
addAction
(
cmd
);
...
...
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