forked from qt-creator/qt-creator
Editors: Automatically add editor/document id to context and use that
instead of manually adding a context everywhere. Change-Id: I4336015a6d19349171a255e949da89b0013d6700 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -93,8 +93,7 @@ public:
|
||||
setAutoCompleterCreator([]() { return new CppAutoCompleter; });
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
|
||||
setEditorActionHandlers(Constants::C_CPPEDITOR,
|
||||
TextEditorActionHandler::Format
|
||||
setEditorActionHandlers(TextEditorActionHandler::Format
|
||||
| TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::UnCollapseAll
|
||||
| TextEditorActionHandler::FollowSymbolUnderCursor);
|
||||
@@ -204,7 +203,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
wizard->setId(QLatin1String("C.Header"));
|
||||
addAutoReleasedObject(wizard);
|
||||
|
||||
Context context(Constants::C_CPPEDITOR);
|
||||
Context context(Constants::CPPEDITOR_ID);
|
||||
|
||||
ActionContainer *contextMenu = ActionManager::createMenu(Constants::M_CONTEXT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user