1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibGUI: Add deprecated suffix to {set_,}tooltip in Widget

This commit is contained in:
camc 2023-08-01 19:31:54 +01:00 committed by Sam Atkins
parent 9b1e33af69
commit d978dd4af8
32 changed files with 56 additions and 56 deletions

View file

@ -878,18 +878,18 @@ void TerminalWidget::mousemove_event(GUI::MouseEvent& event)
auto file_name = LexicalPath::basename(path);
if (path == handlers[0]) {
set_tooltip(DeprecatedString::formatted("Execute {}", app_name));
set_tooltip_deprecated(DeprecatedString::formatted("Execute {}", app_name));
} else {
set_tooltip(DeprecatedString::formatted("Open {} with {}", file_name, app_name));
set_tooltip_deprecated(DeprecatedString::formatted("Open {} with {}", file_name, app_name));
}
} else {
set_tooltip(DeprecatedString::formatted("Open {} with {}", attribute.href, app_name));
set_tooltip_deprecated(DeprecatedString::formatted("Open {} with {}", attribute.href, app_name));
}
}
} else {
m_hovered_href_id = {};
m_hovered_href = {};
set_tooltip({});
set_tooltip_deprecated({});
}
show_or_hide_tooltip();
if (!m_hovered_href.is_empty())
@ -957,7 +957,7 @@ void TerminalWidget::leave_event(Core::Event&)
bool should_update = !m_hovered_href.is_empty();
m_hovered_href = {};
m_hovered_href_id = {};
set_tooltip(m_hovered_href);
set_tooltip_deprecated(m_hovered_href);
set_override_cursor(Gfx::StandardCursor::IBeam);
if (should_update)
update();