mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibGUI+Userland: Add _deprecated
suffix to AbstractButton::{set_,}text
This commit is contained in:
parent
61b49daf0a
commit
d32b052f22
30 changed files with 83 additions and 83 deletions
|
@ -57,7 +57,7 @@ class ResultRow final : public GUI::Button {
|
|||
if (!m_context_menu) {
|
||||
m_context_menu = GUI::Menu::construct();
|
||||
|
||||
if (LexicalPath path { text() }; path.is_absolute()) {
|
||||
if (LexicalPath path { text_deprecated() }; path.is_absolute()) {
|
||||
m_context_menu->add_action(GUI::Action::create("&Show in File Manager", MUST(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-file-manager.png"sv)), [=](auto&) {
|
||||
Desktop::Launcher::open(URL::create_with_file_scheme(path.dirname(), path.basename()));
|
||||
}));
|
||||
|
@ -65,7 +65,7 @@ class ResultRow final : public GUI::Button {
|
|||
}
|
||||
|
||||
m_context_menu->add_action(GUI::Action::create("&Copy as Text", MUST(Gfx::Bitmap::load_from_file("/res/icons/16x16/edit-copy.png"sv)), [&](auto&) {
|
||||
GUI::Clipboard::the().set_plain_text(text());
|
||||
GUI::Clipboard::the().set_plain_text(text_deprecated());
|
||||
}));
|
||||
}
|
||||
m_context_menu->popup(event.screen_position());
|
||||
|
@ -256,7 +256,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto& result = app_state.results[i];
|
||||
auto& match = results_container.add<Assistant::ResultRow>();
|
||||
match.set_icon(result.bitmap());
|
||||
match.set_text(move(result.title()));
|
||||
match.set_text_deprecated(move(result.title()));
|
||||
match.set_tooltip(move(result.tooltip()));
|
||||
match.on_click = [&result](auto) {
|
||||
result.activate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue