Core: Add an ActionContainer::addSeparator(Id) overload

This basically makes the Context parameter optional and default
to C_GLOBAL. Less noise on the user side.

Change-Id: Idaf1b83eabaf912450ab20bd5a8b613844bf69a2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2015-02-26 13:58:00 +01:00
parent 8b9456e41c
commit a66fe4b29e
8 changed files with 42 additions and 42 deletions

View File

@@ -568,4 +568,11 @@ bool MenuBarActionContainer::canBeAddedToMenu() const
}
} // namespace Internal
Command *ActionContainer::addSeparator(Id group)
{
static const Context context(Constants::C_GLOBAL);
return addSeparator(context, group);
}
} // namespace Core