mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
LibGUI: Make Layout a Core::Object and add basic serialization
This allows you to view layouts (as data) in Inspector.
This commit is contained in:
parent
ecc39678f5
commit
849fdc1c0b
Notes:
sideshowbarker
2024-07-19 08:54:19 +09:00
Author: https://github.com/awesomekling
Commit: 849fdc1c0b
8 changed files with 66 additions and 13 deletions
|
@ -44,7 +44,7 @@ ToolBar::ToolBar(Orientation orientation, int button_size)
|
|||
set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
|
||||
set_preferred_size(button_size + 12, 0);
|
||||
}
|
||||
set_layout(make<BoxLayout>(orientation));
|
||||
set_layout<BoxLayout>(orientation);
|
||||
layout()->set_spacing(0);
|
||||
layout()->set_margins({ 2, 2, 2, 2 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue