mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
LibGUI: Convert GLabel to ObjectPtr
This commit is contained in:
parent
6b347747f2
commit
c7437f9caa
Notes:
sideshowbarker
2024-07-19 12:02:31 +09:00
Author: https://github.com/awesomekling
Commit: c7437f9caa
22 changed files with 47 additions and 45 deletions
|
@ -34,7 +34,7 @@ void GInputBox::build()
|
|||
widget->layout()->set_margins({ 8, 8, 8, 8 });
|
||||
widget->layout()->set_spacing(8);
|
||||
|
||||
auto* label = new GLabel(m_prompt, widget);
|
||||
auto label = GLabel::construct(m_prompt, widget);
|
||||
label->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
|
||||
label->set_preferred_size(text_width, 16);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue