From a4b4728267ce81880d0fbde6b8c559e3a762d091 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 16 Nov 2014 12:05:34 +0200 Subject: VCS: Rework disabling of ambiguous actions Task-number: QTCREATORBUG-13364 Change-Id: Ib9dc98964983f1a2808a89d90969089a09d2b55e Reviewed-by: Eike Ziller --- src/plugins/coreplugin/actionmanager/actioncontainer.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/plugins/coreplugin/actionmanager/actioncontainer.cpp') diff --git a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp index 893e217937..6cf8ba718e 100644 --- a/src/plugins/coreplugin/actionmanager/actioncontainer.cpp +++ b/src/plugins/coreplugin/actionmanager/actioncontainer.cpp @@ -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(item)) - command->action()->setEnabled(enabled); - else if (ActionContainer *container = qobject_cast(item)) - container->setEnabled(enabled); - } - } -} - void ActionContainerPrivate::clear() { QMutableListIterator it(m_groups); -- cgit v1.2.1