LibGUI: Convert custom widgets and subclasses to ObjectPtr

This commit is contained in:
Andreas Kling 2019-09-21 20:04:00 +02:00
commit defafd72bc
Notes: sideshowbarker 2024-07-19 12:00:58 +09:00
30 changed files with 57 additions and 47 deletions

View file

@ -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);