1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:25:06 +00:00

LibGUI: Suggest 'layout' even before the user starts typing

This commit is contained in:
thislooksfun 2021-10-26 00:48:25 -05:00 committed by Andreas Kling
parent 8863fe5852
commit 49b4dfd6cd

View file

@ -189,6 +189,9 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)>
}
}
}
if (can_have_declared_layout(class_names.last()))
identifier_entries.empend("layout: ", 0u, Language::Unspecified, "layout");
Core::ObjectClassRegistration::for_each([&](const Core::ObjectClassRegistration& registration) {
if (!registration.is_derived_from(widget_class))
return;