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:
@@ -168,7 +168,7 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
mtools->addMenu(mcpptools);
|
||||
|
||||
// Actions
|
||||
Context context(CppEditor::Constants::C_CPPEDITOR);
|
||||
Context context(CppEditor::Constants::CPPEDITOR_ID);
|
||||
|
||||
QAction *switchAction = new QAction(tr("Switch Header/Source"), this);
|
||||
Command *command = ActionManager::registerAction(switchAction, Constants::SWITCH_HEADER_SOURCE, context, true);
|
||||
|
||||
Reference in New Issue
Block a user