mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
GMLCompiler: GML compile compatibility for ScrollableContainerWidget
This commit is contained in:
committed by
Tim Schumacher
parent
72a5c8f3d8
commit
d6ca054935
@@ -325,7 +325,7 @@ static ErrorOr<void> generate_loader_for_object(GUI::GML::Object const& gml_obje
|
||||
|
||||
// Handle the current two special cases of child adding.
|
||||
if (gml_object.name() == "GUI::ScrollableContainerWidget"sv)
|
||||
TRY(append(child_generator, "static_ptr_cast<GUI::ScrollableContainerWidget>(@object_name@)->set_widget(*@child_variable_name@);"));
|
||||
TRY(append(child_generator, "static_ptr_cast<GUI::ScrollableContainerWidget>(@object_name@)->set_widget(@child_variable_name@);"));
|
||||
else if (gml_object.name() == "GUI::TabWidget"sv)
|
||||
TRY(append(child_generator, "static_ptr_cast<GUI::TabWidget>(@object_name@)->add_widget(*@child_variable_name@);"));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user