mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibGUI: Add deprecated suffix to {set_,}tooltip in Widget
This commit is contained in:
parent
9b1e33af69
commit
d978dd4af8
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/camc 🔰
Commit: d978dd4af8
Pull-request: https://github.com/SerenityOS/serenity/pull/20312
Reviewed-by: https://github.com/AtkinsSJ ✅
32 changed files with 56 additions and 56 deletions
|
@ -119,9 +119,9 @@ void LinkLabel::did_change_text()
|
|||
void LinkLabel::update_tooltip_if_needed()
|
||||
{
|
||||
if (width() < font().width(text())) {
|
||||
set_tooltip(text().to_deprecated_string());
|
||||
set_tooltip_deprecated(text().to_deprecated_string());
|
||||
} else {
|
||||
set_tooltip({});
|
||||
set_tooltip_deprecated({});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue