diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-11-16 12:05:34 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-11-17 10:57:07 +0100 |
commit | a4b4728267ce81880d0fbde6b8c559e3a762d091 (patch) | |
tree | cac57389e4f61fa81f6436cb1e6f3aa31f2f39fe /src/plugins/coreplugin/actionmanager/actioncontainer.cpp | |
parent | 17c92cdeef9e76ae4f5ff2643b98aa2c8d81f071 (diff) | |
download | qt-creator-a4b4728267ce81880d0fbde6b8c559e3a762d091.tar.gz |
VCS: Rework disabling of ambiguous actions
Task-number: QTCREATORBUG-13364
Change-Id: Ib9dc98964983f1a2808a89d90969089a09d2b55e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/actionmanager/actioncontainer.cpp')
-rw-r--r-- | src/plugins/coreplugin/actionmanager/actioncontainer.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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<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); |