mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibGUI: Rename Action::long_text to Action::status_tip
This feels a bit more descriptive.
This commit is contained in:
parent
aa254ffd66
commit
a2086ad56e
4 changed files with 12 additions and 12 deletions
|
@ -49,21 +49,21 @@ NonnullRefPtr<Action> make_about_action(const String& app_name, const Icon& app_
|
|||
NonnullRefPtr<Action> make_open_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||
{
|
||||
auto action = Action::create("&Open...", { Mod_Ctrl, Key_O }, Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), move(callback), parent);
|
||||
action->set_long_text("Open an existing file");
|
||||
action->set_status_tip("Open an existing file");
|
||||
return action;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Action> make_save_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||
{
|
||||
auto action = Action::create("&Save", { Mod_Ctrl, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png"), move(callback), parent);
|
||||
action->set_long_text("Save the current file");
|
||||
action->set_status_tip("Save the current file");
|
||||
return action;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Action> make_save_as_action(Function<void(Action&)> callback, Core::Object* parent)
|
||||
{
|
||||
auto action = Action::create("Save &As...", { Mod_Ctrl | Mod_Shift, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png"), move(callback), parent);
|
||||
action->set_long_text("Save the current file with a new name");
|
||||
action->set_status_tip("Save the current file with a new name");
|
||||
return action;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue