mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 00:11:00 +00:00
This allows us to construct menus in a more natural way:
auto& file_menu = menubar->add_menu("File");
file_menu.add_action(...);
Instead of the old way:
auto file_menu = GUI::Menu::construct();
file_menu->add_action(...);
menubar->add_menu(file_menu);
|
||
|---|---|---|
| .. | ||
| main.cpp | ||
| Makefile | ||
| TextEditorWidget.cpp | ||
| TextEditorWidget.h | ||