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
4b24de28
Commit
4b24de28
authored
Jul 22, 2009
by
mae
Browse files
extend cpp editor's context menu with auto-indent and un-comment-selection
(user request)
parent
31d62997
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cppplugin.cpp
View file @
4b24de28
...
...
@@ -49,6 +49,7 @@
#include
<texteditor/texteditoractionhandler.h>
#include
<texteditor/texteditorplugin.h>
#include
<texteditor/texteditorsettings.h>
#include
<texteditor/texteditorconstants.h>
#include
<cpptools/cpptoolsconstants.h>
#include
<QtCore/QFileInfo>
...
...
@@ -216,6 +217,15 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
|
TextEditor
::
TextEditorActionHandler
::
UnCommentSelection
|
TextEditor
::
TextEditorActionHandler
::
UnCollapseAll
);
m_actionHandler
->
initializeActions
();
cmd
=
am
->
command
(
TextEditor
::
Constants
::
AUTO_INDENT_SELECTION
);
am
->
actionContainer
(
CppEditor
::
Constants
::
M_CONTEXT
)
->
addAction
(
cmd
);
cmd
=
am
->
command
(
TextEditor
::
Constants
::
UN_COMMENT_SELECTION
);
am
->
actionContainer
(
CppEditor
::
Constants
::
M_CONTEXT
)
->
addAction
(
cmd
);
readSettings
();
return
true
;
}
...
...
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