mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
92 changed files with 240 additions and 242 deletions
|
@ -19,7 +19,7 @@ REGISTER_WIDGET(GUI, LinkLabel)
|
|||
|
||||
namespace GUI {
|
||||
|
||||
LinkLabel::LinkLabel(DeprecatedString text)
|
||||
LinkLabel::LinkLabel(String text)
|
||||
: Label(move(text))
|
||||
{
|
||||
set_foreground_role(Gfx::ColorRole::Link);
|
||||
|
@ -102,7 +102,7 @@ void LinkLabel::did_change_text()
|
|||
void LinkLabel::update_tooltip_if_needed()
|
||||
{
|
||||
if (width() < font().width(text())) {
|
||||
set_tooltip(text());
|
||||
set_tooltip(text().to_deprecated_string());
|
||||
} else {
|
||||
set_tooltip({});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue