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:
parent
8863fe5852
commit
49b4dfd6cd
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue