mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibGUI: Register more GML properties and widgets
Register "placeholder" for TextEditor and ComboBox; "models_only" for ComboBox; Vertical/HorizontalSeparator for SeparatorWidget
This commit is contained in:
parent
5806630cf4
commit
cf866cc75a
Notes:
sideshowbarker
2024-07-18 21:30:02 +09:00
Author: https://github.com/thankyouverycool
Commit: cf866cc75a
Pull-request: https://github.com/SerenityOS/serenity/pull/5741
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/emanuele6
5 changed files with 48 additions and 2 deletions
|
@ -59,6 +59,7 @@ TextEditor::TextEditor(Type type)
|
|||
: m_type(type)
|
||||
{
|
||||
REGISTER_STRING_PROPERTY("text", text, set_text);
|
||||
REGISTER_STRING_PROPERTY("placeholder", placeholder, set_placeholder);
|
||||
REGISTER_ENUM_PROPERTY("mode", mode, set_mode, Mode,
|
||||
{ Editable, "Editable" },
|
||||
{ ReadOnly, "ReadOnly" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue