1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Userland: Set tab-widget properties in GML instead of code

This commit is contained in:
Sam Atkins 2022-05-05 14:32:16 +01:00 committed by Andreas Kling
parent 24a8a260c0
commit 84b98da259
6 changed files with 6 additions and 7 deletions

View file

@ -40,9 +40,6 @@ MainWidget::MainWidget()
m_statusbar = *find_descendant_of_type_named<GUI::Statusbar>("statusbar");
m_tab_widget = find_descendant_of_type_named<GUI::TabWidget>("tab_widget");
m_tab_widget->set_container_margins({ 4, 5, 5, 4 });
m_tab_widget->set_reorder_allowed(true);
m_tab_widget->set_close_button_enabled(true);
m_palette_widget = *find_descendant_of_type_named<PixelPaint::PaletteWidget>("palette_widget");