mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-02 14:20:58 +00:00
15 lines
294 B
C++
15 lines
294 B
C++
|
|
#include <LibGUI/GAction.h>
|
||
|
|
#include <LibGUI/GActionGroup.h>
|
||
|
|
|
||
|
|
void GActionGroup::add_action(GAction& action)
|
||
|
|
{
|
||
|
|
action.set_group({}, this);
|
||
|
|
m_actions.set(&action);
|
||
|
|
}
|
||
|
|
|
||
|
|
void GActionGroup::remove_action(GAction& action)
|
||
|
|
{
|
||
|
|
action.set_group({}, nullptr);
|
||
|
|
m_actions.remove(&action);
|
||
|
|
}
|