GLTeapot: Adds a help menu to the GLTeapot demo

Having a help menu maintains better consistency with the other GUI apps
 on the system.
This commit is contained in:
Erik Biederstadt 2021-05-17 15:53:54 -06:00 committed by Linus Groh
parent d9dc42fab5
commit 132ecfc47b
Notes: sideshowbarker 2024-07-18 17:47:00 +09:00

View file

@ -194,6 +194,9 @@ int main(int argc, char** argv)
app->quit();
}));
auto& help_menu = menubar->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("GLTeapot", app_icon, window));
window->set_menubar(move(menubar));
window->show();