mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 08:55: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
|
@ -28,7 +28,7 @@ int main(int argc, char** argv)
|
|||
auto window = GWindow::construct();
|
||||
window->set_title("Font Editor");
|
||||
window->set_rect({ 50, 50, 390, 342 });
|
||||
auto* font_editor = new FontEditorWidget(path, move(edited_font));
|
||||
auto font_editor = FontEditorWidget::construct(path, move(edited_font));
|
||||
window->set_main_widget(font_editor);
|
||||
window->show();
|
||||
window->set_icon(load_png("/res/icons/16x16/app-font-editor.png"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue