mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:37:35 +00:00
Userland: Use nondeprecated set_tooltip for static and formatted strings
This commit is contained in:
parent
46a97844c7
commit
ed3e729d4e
18 changed files with 45 additions and 45 deletions
|
@ -117,7 +117,7 @@ BookmarksBarWidget::BookmarksBarWidget(DeprecatedString const& bookmarks_file, b
|
|||
set_visible(false);
|
||||
|
||||
m_additional = GUI::Button::construct();
|
||||
m_additional->set_tooltip_deprecated("Show hidden bookmarks");
|
||||
m_additional->set_tooltip("Show hidden bookmarks"_string);
|
||||
m_additional->set_menu(m_additional_menu);
|
||||
auto bitmap_or_error = Gfx::Bitmap::load_from_file("/res/icons/16x16/overflow-menu.png"sv);
|
||||
if (!bitmap_or_error.is_error())
|
||||
|
|
|
@ -56,7 +56,7 @@ ConsoleWidget::ConsoleWidget(WebView::OutOfProcessWebView& content_view)
|
|||
auto& clear_button = bottom_container.add<GUI::Button>();
|
||||
clear_button.set_fixed_size(22, 22);
|
||||
clear_button.set_icon(g_icon_bag.delete_icon);
|
||||
clear_button.set_tooltip_deprecated("Clear the console output");
|
||||
clear_button.set_tooltip("Clear the console output"_string);
|
||||
clear_button.on_click = [this](auto) {
|
||||
m_console_client->clear();
|
||||
};
|
||||
|
|
|
@ -205,7 +205,7 @@ Tab::Tab(BrowserWindow& window)
|
|||
this);
|
||||
|
||||
m_reset_zoom_button = toolbar.add<GUI::Button>();
|
||||
m_reset_zoom_button->set_tooltip_deprecated("Reset zoom level");
|
||||
m_reset_zoom_button->set_tooltip("Reset zoom level"_string);
|
||||
m_reset_zoom_button->on_click = [&](auto) {
|
||||
view().reset_zoom();
|
||||
update_reset_zoom_button();
|
||||
|
@ -801,10 +801,10 @@ void Tab::update_bookmark_button(StringView url)
|
|||
{
|
||||
if (BookmarksBarWidget::the().contains_bookmark(url)) {
|
||||
m_bookmark_button->set_icon(g_icon_bag.bookmark_filled);
|
||||
m_bookmark_button->set_tooltip_deprecated("Remove Bookmark");
|
||||
m_bookmark_button->set_tooltip("Remove Bookmark"_string);
|
||||
} else {
|
||||
m_bookmark_button->set_icon(g_icon_bag.bookmark_contour);
|
||||
m_bookmark_button->set_tooltip_deprecated("Add Bookmark");
|
||||
m_bookmark_button->set_tooltip("Add Bookmark"_string);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue