mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibGUI: Register the "text" property on GUI::TextEditor
This commit is contained in:
parent
a5878175e2
commit
468a29f4a1
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,8 @@ namespace GUI {
|
||||||
TextEditor::TextEditor(Type type)
|
TextEditor::TextEditor(Type type)
|
||||||
: m_type(type)
|
: m_type(type)
|
||||||
{
|
{
|
||||||
|
REGISTER_STRING_PROPERTY("text", text, set_text);
|
||||||
|
|
||||||
set_accepts_emoji_input(true);
|
set_accepts_emoji_input(true);
|
||||||
set_override_cursor(Gfx::StandardCursor::IBeam);
|
set_override_cursor(Gfx::StandardCursor::IBeam);
|
||||||
set_background_role(ColorRole::Base);
|
set_background_role(ColorRole::Base);
|
||||||
|
@ -70,6 +72,7 @@ TextEditor::TextEditor(Type type)
|
||||||
});
|
});
|
||||||
m_automatic_selection_scroll_timer->stop();
|
m_automatic_selection_scroll_timer->stop();
|
||||||
create_actions();
|
create_actions();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextEditor::~TextEditor()
|
TextEditor::~TextEditor()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue