mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-10 05:02:54 +00:00
LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clients
This commit is contained in:
parent
4697195645
commit
0f3e57a6fb
Notes:
sideshowbarker
2024-07-19 08:54:48 +09:00
Author: https://github.com/awesomekling
Commit: 0f3e57a6fb
37 changed files with 203 additions and 246 deletions
|
@ -70,8 +70,7 @@ int main(int argc, char** argv)
|
|||
window->set_title("Font Editor");
|
||||
window->set_rect({ 50, 50, 390, 342 });
|
||||
|
||||
auto font_editor = FontEditorWidget::construct(path, move(edited_font));
|
||||
window->set_main_widget(font_editor);
|
||||
window->set_main_widget<FontEditorWidget>(path, move(edited_font));
|
||||
window->show();
|
||||
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-font-editor.png"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue