forked from qt-creator/qt-creator
Fixes: - ICommand --> Command
Details: - Naming convention
This commit is contained in:
@@ -111,10 +111,10 @@ static inline QAction *createEditModeAction(QActionGroup *ag,
|
||||
rc->setCheckable(true);
|
||||
if (!iconName.isEmpty())
|
||||
rc->setIcon(designerIcon(iconName));
|
||||
Core::ICommand *command = am->registerAction(rc, name, context);
|
||||
Core::Command *command = am->registerAction(rc, name, context);
|
||||
if (!keySequence.isEmpty())
|
||||
command->setDefaultKeySequence(QKeySequence(keySequence));
|
||||
command->setAttribute(Core::ICommand::CA_Hide);
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
medit->addAction(command, Core::Constants::G_EDIT_OTHER);
|
||||
rc->setData(toolNumber);
|
||||
ag->addAction(rc);
|
||||
@@ -132,7 +132,7 @@ static inline QAction * createSeparator(QObject *parent,
|
||||
{
|
||||
QAction *actSeparator = new QAction(parent);
|
||||
actSeparator->setSeparator(true);
|
||||
Core::ICommand *command = am->registerAction(actSeparator, name, context);
|
||||
Core::Command *command = am->registerAction(actSeparator, name, context);
|
||||
container->addAction(command, group);
|
||||
return actSeparator;
|
||||
}
|
||||
@@ -145,7 +145,7 @@ static inline void addToolAction(QAction *a,
|
||||
Core::ActionContainer *c1,
|
||||
const QString &keySequence = QString())
|
||||
{
|
||||
Core::ICommand *command = am->registerAction(a, name, context);
|
||||
Core::Command *command = am->registerAction(a, name, context);
|
||||
if (!keySequence.isEmpty())
|
||||
command->setDefaultKeySequence(QKeySequence(keySequence));
|
||||
c1->addAction(command);
|
||||
@@ -306,7 +306,7 @@ void FormEditorW::deleteInstance()
|
||||
void FormEditorW::setupActions()
|
||||
{
|
||||
Core::ActionManager *am = m_core->actionManager();
|
||||
Core::ICommand *command;
|
||||
Core::Command *command;
|
||||
|
||||
//menus
|
||||
Core::ActionContainer *medit =
|
||||
@@ -334,7 +334,7 @@ void FormEditorW::setupActions()
|
||||
//'delete' action
|
||||
command = am->registerAction(m_fwm->actionDelete(), QLatin1String("FormEditor.Edit.Delete"), m_context);
|
||||
command->setDefaultKeySequence(QKeySequence::Delete);
|
||||
command->setAttribute(Core::ICommand::CA_Hide);
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
medit->addAction(command, Core::Constants::G_EDIT_COPYPASTE);
|
||||
|
||||
//editor Modes. Store ids for editor tool bars
|
||||
@@ -446,7 +446,7 @@ QToolBar *FormEditorW::createEditorToolBar() const
|
||||
Core::ActionManager *am = m_core->actionManager();
|
||||
const QStringList::const_iterator cend = m_toolActionIds.constEnd();
|
||||
for (QStringList::const_iterator it = m_toolActionIds.constBegin(); it != cend; ++it) {
|
||||
Core::ICommand *cmd = am->command(*it);
|
||||
Core::Command *cmd = am->command(*it);
|
||||
QTC_ASSERT(cmd, continue);
|
||||
QAction *action = cmd->action();
|
||||
if (!action->icon().isNull()) // Simplify grid has no action yet
|
||||
@@ -483,10 +483,10 @@ Core::ActionContainer *FormEditorW::createPreviewStyleMenu(Core::ActionManager *
|
||||
name += dot;
|
||||
}
|
||||
name += data.toString();
|
||||
Core::ICommand *command = am->registerAction(a, name, m_context);
|
||||
Core::Command *command = am->registerAction(a, name, m_context);
|
||||
if (isDeviceProfile) {
|
||||
command->setAttribute(Core::ICommand::CA_UpdateText);
|
||||
command->setAttribute(Core::ICommand::CA_NonConfigureable);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
command->setAttribute(Core::Command::CA_NonConfigureable);
|
||||
}
|
||||
menuPreviewStyle->addAction(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user