mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
The same action can be added to both a menu and a toolbar. Use this to put a toolbar into FileManager. This is pretty neat. :^)
18 lines
249 B
C++
18 lines
249 B
C++
#include <LibGUI/GMenuItem.h>
|
|
#include <LibGUI/GAction.h>
|
|
|
|
GMenuItem::GMenuItem(Type type)
|
|
: m_type(type)
|
|
{
|
|
}
|
|
|
|
GMenuItem::GMenuItem(RetainPtr<GAction>&& action)
|
|
: m_type(Action)
|
|
, m_action(move(action))
|
|
{
|
|
}
|
|
|
|
GMenuItem::~GMenuItem()
|
|
{
|
|
}
|
|
|