forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user