mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
LibGUI: Add deprecated suffix to {set_,}tooltip in Widget
This commit is contained in:
parent
9b1e33af69
commit
d978dd4af8
32 changed files with 56 additions and 56 deletions
|
@ -87,7 +87,7 @@ private:
|
|||
m_root_container->set_frame_style(Gfx::FrameStyle::Window);
|
||||
|
||||
m_percent_box = m_root_container->add<GUI::CheckBox>("\xE2\x84\xB9"_string);
|
||||
m_percent_box->set_tooltip(show_percent() ? "Hide percent" : "Show percent");
|
||||
m_percent_box->set_tooltip_deprecated(show_percent() ? "Hide percent" : "Show percent");
|
||||
m_percent_box->set_checked(show_percent());
|
||||
m_percent_box->on_checked = [&](bool show_percent) {
|
||||
set_show_percent(show_percent);
|
||||
|
@ -111,9 +111,9 @@ private:
|
|||
|
||||
m_mute_box = m_root_container->add<GUI::CheckBox>("\xE2\x9D\x8C"_string);
|
||||
m_mute_box->set_checked(m_audio_muted);
|
||||
m_mute_box->set_tooltip(m_audio_muted ? "Unmute" : "Mute");
|
||||
m_mute_box->set_tooltip_deprecated(m_audio_muted ? "Unmute" : "Mute");
|
||||
m_mute_box->on_checked = [&](bool is_muted) {
|
||||
m_mute_box->set_tooltip(is_muted ? "Unmute" : "Mute");
|
||||
m_mute_box->set_tooltip_deprecated(is_muted ? "Unmute" : "Mute");
|
||||
m_audio_client->set_main_mix_muted(is_muted);
|
||||
GUI::Application::the()->hide_tooltip();
|
||||
};
|
||||
|
@ -129,7 +129,7 @@ public:
|
|||
{
|
||||
m_show_percent = show_percent;
|
||||
m_percent_box->set_checked(show_percent);
|
||||
m_percent_box->set_tooltip(show_percent ? "Hide percent" : "Show percent");
|
||||
m_percent_box->set_tooltip_deprecated(show_percent ? "Hide percent" : "Show percent");
|
||||
if (show_percent)
|
||||
window()->resize(44, 16);
|
||||
else
|
||||
|
|
|
@ -101,7 +101,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
applet_window->set_window_type(GUI::WindowType::Applet);
|
||||
applet_window->set_has_alpha_channel(true);
|
||||
auto icon_widget = TRY(applet_window->set_main_widget<GUI::ImageWidget>());
|
||||
icon_widget->set_tooltip("Clipboard History");
|
||||
icon_widget->set_tooltip_deprecated("Clipboard History");
|
||||
icon_widget->load_from_file("/res/icons/16x16/edit-copy.png"sv);
|
||||
icon_widget->on_click = [&main_window = *main_window] {
|
||||
main_window.show();
|
||||
|
|
|
@ -66,7 +66,7 @@ ErrorOr<void> KeymapStatusWidget::refresh_menu()
|
|||
void KeymapStatusWidget::set_current_keymap(DeprecatedString const& keymap)
|
||||
{
|
||||
m_current_keymap = keymap;
|
||||
set_tooltip(keymap);
|
||||
set_tooltip_deprecated(keymap);
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ private:
|
|||
m_adapter_info = adapter_info;
|
||||
}
|
||||
|
||||
set_tooltip(m_adapter_info);
|
||||
set_tooltip_deprecated(m_adapter_info);
|
||||
|
||||
if (m_connected)
|
||||
NetworkWidget::set_bitmap(m_connected_icon);
|
||||
|
|
|
@ -107,7 +107,7 @@ private:
|
|||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
set_tooltip(m_tooltip);
|
||||
set_tooltip_deprecated(m_tooltip);
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue