forked from qt-creator/qt-creator
VCS: Rework disabling of ambiguous actions
Task-number: QTCREATORBUG-13364 Change-Id: Ib9dc98964983f1a2808a89d90969089a09d2b55e Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
17c92cdeef
commit
a4b4728267
@@ -307,18 +307,6 @@ Command *ActionContainerPrivate::addSeparator(const Context &context, Id group,
|
||||
return cmd;
|
||||
}
|
||||
|
||||
void ActionContainerPrivate::setEnabled(bool enabled)
|
||||
{
|
||||
foreach (const Group &group, m_groups) {
|
||||
foreach (QObject *item, group.items) {
|
||||
if (Command *command = qobject_cast<Command *>(item))
|
||||
command->action()->setEnabled(enabled);
|
||||
else if (ActionContainer *container = qobject_cast<ActionContainer *>(item))
|
||||
container->setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ActionContainerPrivate::clear()
|
||||
{
|
||||
QMutableListIterator<Group> it(m_groups);
|
||||
|
||||
Reference in New Issue
Block a user