1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Userland: Port GUI::Application::show_tooltip() to String

This most importantly gets rid of a chain of "String to DeprecatedString
to String" transformations when setting a tooltip from GUI::Widget's
set_tooltip function.
This commit is contained in:
Karol Kosek 2023-09-10 16:44:32 +02:00 committed by Andreas Kling
parent 16defb4806
commit a3ddba4191
7 changed files with 12 additions and 12 deletions

View file

@ -187,7 +187,7 @@ void MapWidget::mousemove_event(GUI::MouseEvent& event)
marker_image->height()
};
if (marker_rect.contains(event.x(), event.y())) {
GUI::Application::the()->show_tooltip(marker.tooltip.value().to_deprecated_string(), this);
GUI::Application::the()->show_tooltip(marker.tooltip.value(), this);
return;
}
}