mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
Applications: Stop calling set_tooltip_deprecated when we do have String
This commit is contained in:
parent
9c923f20f4
commit
46a97844c7
Notes:
sideshowbarker
2024-07-16 22:14:49 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/46a97844c7 Pull-request: https://github.com/SerenityOS/serenity/pull/21020 Reviewed-by: https://github.com/AtkinsSJ
3 changed files with 4 additions and 4 deletions
|
@ -216,7 +216,7 @@ ErrorOr<void> MonitorSettingsWidget::selected_screen_index_or_resolution_changed
|
|||
|
||||
if (screen_dpi.has_value()) {
|
||||
auto dpi_label_value = TRY(String::formatted("{} dpi", screen_dpi.value()));
|
||||
m_dpi_label->set_tooltip_deprecated(screen_dpi_tooltip.to_deprecated_string());
|
||||
m_dpi_label->set_tooltip(screen_dpi_tooltip);
|
||||
m_dpi_label->set_text(move(dpi_label_value));
|
||||
m_dpi_label->set_visible(true);
|
||||
} else {
|
||||
|
|
|
@ -26,7 +26,7 @@ ProcessorParameterSlider::ProcessorParameterSlider(Orientation orientation, DSP:
|
|||
set_value(value_log);
|
||||
set_step((min_log - max_log) / slider_steps);
|
||||
}
|
||||
set_tooltip_deprecated(m_parameter.name().to_deprecated_string());
|
||||
set_tooltip(m_parameter.name());
|
||||
if (m_value_label != nullptr)
|
||||
m_value_label->set_text(String::formatted("{:.2f}", static_cast<double>(m_parameter)).release_value_but_fixme_should_propagate_errors());
|
||||
|
||||
|
|
|
@ -118,9 +118,9 @@ void LinkLabel::did_change_text()
|
|||
void LinkLabel::update_tooltip_if_needed()
|
||||
{
|
||||
if (width() < font().width(text())) {
|
||||
set_tooltip_deprecated(text().to_deprecated_string());
|
||||
set_tooltip(text());
|
||||
} else {
|
||||
set_tooltip_deprecated({});
|
||||
set_tooltip({});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue