mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibGUI: Port rest of the classes to property deserializers
This commit is contained in:
parent
bd56d2f508
commit
1f4b15dcaa
9 changed files with 164 additions and 211 deletions
|
@ -21,7 +21,8 @@ Layout::Layout(Margins initial_margins, int spacing)
|
|||
REGISTER_INT_PROPERTY("spacing", spacing, set_spacing);
|
||||
REGISTER_MARGINS_PROPERTY("margins", margins, set_margins);
|
||||
|
||||
register_property("entries",
|
||||
register_property(
|
||||
"entries"sv,
|
||||
[this] {
|
||||
JsonArray entries_array;
|
||||
for (auto& entry : m_entries) {
|
||||
|
@ -37,7 +38,8 @@ Layout::Layout(Margins initial_margins, int spacing)
|
|||
entries_array.must_append(move(entry_object));
|
||||
}
|
||||
return entries_array;
|
||||
});
|
||||
},
|
||||
nullptr, nullptr);
|
||||
}
|
||||
|
||||
Layout::~Layout() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue