actionmanager: rename Command::CA_NonConfigureable to CA_NonConfigurable

This commit is contained in:
hjk
2011-02-09 15:23:48 +01:00
parent 703d637cc6
commit af8daf9d30
5 changed files with 7 additions and 7 deletions

View File

@@ -83,7 +83,7 @@
\value CA_Hide \value CA_Hide
When there is no active action, hide the user "visible" action, instead of just When there is no active action, hide the user "visible" action, instead of just
disabling it. disabling it.
\value CA_NonConfigureable \value CA_NonConfigurable
Flag to indicate that the keyboard shortcut of this Command should not be Flag to indicate that the keyboard shortcut of this Command should not be
configurable by the user. configurable by the user.
*/ */
@@ -535,7 +535,7 @@ void Action::setAttribute(CommandAttribute attr)
case Core::Command::CA_UpdateIcon: case Core::Command::CA_UpdateIcon:
m_action->setAttribute(Utils::ProxyAction::UpdateIcon); m_action->setAttribute(Utils::ProxyAction::UpdateIcon);
break; break;
case Core::Command::CA_NonConfigureable: case Core::Command::CA_NonConfigurable:
break; break;
} }
} }
@@ -553,7 +553,7 @@ void Action::removeAttribute(CommandAttribute attr)
case Core::Command::CA_UpdateIcon: case Core::Command::CA_UpdateIcon:
m_action->removeAttribute(Utils::ProxyAction::UpdateIcon); m_action->removeAttribute(Utils::ProxyAction::UpdateIcon);
break; break;
case Core::Command::CA_NonConfigureable: case Core::Command::CA_NonConfigurable:
break; break;
} }
} }

View File

@@ -57,7 +57,7 @@ public:
CA_Hide = 1, CA_Hide = 1,
CA_UpdateText = 2, CA_UpdateText = 2,
CA_UpdateIcon = 4, CA_UpdateIcon = 4,
CA_NonConfigureable = 8 CA_NonConfigurable = 8
}; };
Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute) Q_DECLARE_FLAGS(CommandAttributes, CommandAttribute)

View File

@@ -300,7 +300,7 @@ void ShortcutSettings::initialize()
QMap<QString, QTreeWidgetItem *> sections; QMap<QString, QTreeWidgetItem *> sections;
foreach (Command *c, am->commands()) { foreach (Command *c, am->commands()) {
if (c->hasAttribute(Command::CA_NonConfigureable)) if (c->hasAttribute(Command::CA_NonConfigurable))
continue; continue;
if (c->action() && c->action()->isSeparator()) if (c->action() && c->action()->isSeparator())
continue; continue;

View File

@@ -3027,7 +3027,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
cmd->action()->setEnabled(true); cmd->action()->setEnabled(true);
editorContextMenu->addAction(cmd); editorContextMenu->addAction(cmd);
cmd->setAttribute(Command::CA_Hide); 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); m_plugin->addAutoReleasedObject(new CommonOptionsPage);

View File

@@ -625,7 +625,7 @@ Core::ActionContainer *FormEditorW::createPreviewStyleMenu(Core::ActionManager *
bindShortcut(command, a); bindShortcut(command, a);
if (isDeviceProfile) { if (isDeviceProfile) {
command->setAttribute(Core::Command::CA_UpdateText); command->setAttribute(Core::Command::CA_UpdateText);
command->setAttribute(Core::Command::CA_NonConfigureable); command->setAttribute(Core::Command::CA_NonConfigurable);
} }
menuPreviewStyle->addAction(command); menuPreviewStyle->addAction(command);
} }