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
6054f970
Commit
6054f970
authored
Sep 29, 2009
by
Roberto Raggi
Browse files
Removed the `Find References' action
parent
331effc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppplugin.cpp
View file @
6054f970
...
...
@@ -220,13 +220,6 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
contextMenu
->
addAction
(
cmd
);
am
->
actionContainer
(
CppTools
::
Constants
::
M_TOOLS_CPP
)
->
addAction
(
cmd
);
QAction
*
findReferencesAction
=
new
QAction
(
tr
(
"Find References"
),
this
);
cmd
=
am
->
registerAction
(
findReferencesAction
,
Constants
::
FIND_REFERENCES
,
context
);
connect
(
findReferencesAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
findReferences
()));
contextMenu
->
addAction
(
cmd
);
am
->
actionContainer
(
CppTools
::
Constants
::
M_TOOLS_CPP
)
->
addAction
(
cmd
);
m_actionHandler
=
new
TextEditor
::
TextEditorActionHandler
(
CppEditor
::
Constants
::
C_CPPEDITOR
,
TextEditor
::
TextEditorActionHandler
::
Format
|
TextEditor
::
TextEditorActionHandler
::
UnCommentSelection
...
...
@@ -293,12 +286,4 @@ void CppPlugin::renameSymbolUnderCursor()
editor
->
renameSymbolUnderCursor
();
}
void
CppPlugin
::
findReferences
()
{
Core
::
EditorManager
*
em
=
Core
::
EditorManager
::
instance
();
CPPEditor
*
editor
=
qobject_cast
<
CPPEditor
*>
(
em
->
currentEditor
()
->
widget
());
if
(
editor
)
editor
->
findReferences
();
}
Q_EXPORT_PLUGIN
(
CppPlugin
)
src/plugins/cppeditor/cppplugin.h
View file @
6054f970
...
...
@@ -74,7 +74,6 @@ private slots:
void
switchDeclarationDefinition
();
void
jumpToDefinition
();
void
renameSymbolUnderCursor
();
void
findReferences
();
private:
Core
::
IEditor
*
createEditor
(
QWidget
*
parent
);
...
...
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