mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +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
|
@ -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