summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-25 20:43:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-25 20:43:35 +0200
commit468a29f4a1da9362286ec671aef7ed712fe99693 (patch)
tree970bf50af8e3718764aeb53295bc4973faf3d028
parenta5878175e25bf28265d1358c2fdb1cc4b66cc61e (diff)
downloadserenity-468a29f4a1da9362286ec671aef7ed712fe99693.zip
LibGUI: Register the "text" property on GUI::TextEditor
-rw-r--r--Libraries/LibGUI/TextEditor.cpp3
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()