summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GActionGroup.cpp
blob: d7c327e28b435ece253b5a32f3d630889c811026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}