mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibGUI: Remove usages of deprecated implicit conversions
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
void set_tooltip(String const& tooltip)
|
||||
{
|
||||
m_label->set_text(Gfx::parse_ampersand_string(tooltip));
|
||||
int tooltip_width = m_label->min_width() + 10;
|
||||
int tooltip_width = m_label->effective_min_size().width().as_int() + 10;
|
||||
int line_count = m_label->text().count("\n");
|
||||
int glyph_height = m_label->font().glyph_height();
|
||||
int tooltip_height = glyph_height * (1 + line_count) + ((glyph_height + 1) / 2) * line_count + 8;
|
||||
|
||||
Reference in New Issue
Block a user