diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-25 20:43:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-25 20:43:35 +0200 |
commit | 468a29f4a1da9362286ec671aef7ed712fe99693 (patch) | |
tree | 970bf50af8e3718764aeb53295bc4973faf3d028 | |
parent | a5878175e25bf28265d1358c2fdb1cc4b66cc61e (diff) | |
download | serenity-468a29f4a1da9362286ec671aef7ed712fe99693.zip |
LibGUI: Register the "text" property on GUI::TextEditor
-rw-r--r-- | Libraries/LibGUI/TextEditor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp index 1dc7efd554..f0f61c5f3a 100644 --- a/Libraries/LibGUI/TextEditor.cpp +++ b/Libraries/LibGUI/TextEditor.cpp @@ -53,6 +53,8 @@ namespace GUI { TextEditor::TextEditor(Type type) : m_type(type) { + REGISTER_STRING_PROPERTY("text", text, set_text); + set_accepts_emoji_input(true); set_override_cursor(Gfx::StandardCursor::IBeam); set_background_role(ColorRole::Base); @@ -70,6 +72,7 @@ TextEditor::TextEditor(Type type) }); m_automatic_selection_scroll_timer->stop(); create_actions(); + } TextEditor::~TextEditor() |