forked from qt-creator/qt-creator
actionmanager: rename Command::CA_NonConfigureable to CA_NonConfigurable
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
\value CA_Hide
|
||||
When there is no active action, hide the user "visible" action, instead of just
|
||||
disabling it.
|
||||
\value CA_NonConfigureable
|
||||
\value CA_NonConfigurable
|
||||
Flag to indicate that the keyboard shortcut of this Command should not be
|
||||
configurable by the user.
|
||||
*/
|
||||
@@ -535,7 +535,7 @@ void Action::setAttribute(CommandAttribute attr)
|
||||
case Core::Command::CA_UpdateIcon:
|
||||
m_action->setAttribute(Utils::ProxyAction::UpdateIcon);
|
||||
break;
|
||||
case Core::Command::CA_NonConfigureable:
|
||||
case Core::Command::CA_NonConfigurable:
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -553,7 +553,7 @@ void Action::removeAttribute(CommandAttribute attr)
|
||||
case Core::Command::CA_UpdateIcon:
|
||||
m_action->removeAttribute(Utils::ProxyAction::UpdateIcon);
|
||||
break;
|
||||
case Core::Command::CA_NonConfigureable:
|
||||
case Core::Command::CA_NonConfigurable:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
CA_Hide = 1,
|
||||
CA_UpdateText = 2,
|
||||
CA_UpdateIcon = 4,
|
||||
CA_NonConfigureable = 8
|
||||
CA_NonConfigurable = 8
|
||||
};
|
||||
Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute)
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ void ShortcutSettings::initialize()
|
||||
QMap<QString, QTreeWidgetItem *> sections;
|
||||
|
||||
foreach (Command *c, am->commands()) {
|
||||
if (c->hasAttribute(Command::CA_NonConfigureable))
|
||||
if (c->hasAttribute(Command::CA_NonConfigurable))
|
||||
continue;
|
||||
if (c->action() && c->action()->isSeparator())
|
||||
continue;
|
||||
|
||||
@@ -3027,7 +3027,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
|
||||
cmd->action()->setEnabled(true);
|
||||
editorContextMenu->addAction(cmd);
|
||||
cmd->setAttribute(Command::CA_Hide);
|
||||
cmd->setAttribute(Command::CA_NonConfigureable); // ADD_TO_WATCH1 is enough.
|
||||
cmd->setAttribute(Command::CA_NonConfigurable); // ADD_TO_WATCH1 is enough.
|
||||
}
|
||||
|
||||
m_plugin->addAutoReleasedObject(new CommonOptionsPage);
|
||||
|
||||
@@ -625,7 +625,7 @@ Core::ActionContainer *FormEditorW::createPreviewStyleMenu(Core::ActionManager *
|
||||
bindShortcut(command, a);
|
||||
if (isDeviceProfile) {
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
command->setAttribute(Core::Command::CA_NonConfigureable);
|
||||
command->setAttribute(Core::Command::CA_NonConfigurable);
|
||||
}
|
||||
menuPreviewStyle->addAction(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user