mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 14:45:07 +00:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -125,7 +125,7 @@ int main(int argc, char** argv)
|
|||
content_title->set_preferred_size(0, 10);
|
||||
|
||||
for (auto& paragraph : page.content) {
|
||||
auto* content_text = new TextWidget(content);
|
||||
auto content_text = TextWidget::construct(content);
|
||||
content_text->set_font(Font::default_font());
|
||||
content_text->set_text(paragraph);
|
||||
content_text->set_text_alignment(TextAlignment::TopLeft);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue