1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibGUI: Add GUI::CommonActions::make_select_all_action() :^)

This commit is contained in:
Andreas Kling 2020-07-03 20:54:38 +02:00
parent 8001a85fc7
commit eec22acb8e
3 changed files with 7 additions and 2 deletions

View file

@ -114,6 +114,11 @@ NonnullRefPtr<Action> make_reload_action(Function<void(Action&)> callback, Core:
return Action::create("Reload", { Mod_Ctrl, Key_R }, Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"), move(callback), parent);
}
NonnullRefPtr<Action> make_select_all_action(Function<void(Action&)> callback, Core::Object* parent)
{
return Action::create("Select all", { Mod_Ctrl, Key_A }, Gfx::Bitmap::load_from_file("/res/icons/16x16/select-all.png"), move(callback), parent);
}
}
Action::Action(const StringView& text, Function<void(Action&)> on_activation_callback, Core::Object* parent, bool checkable)