summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlucastarche <lucastarche@gmail.com>2021-03-15 18:28:00 -0300
committerAndreas Kling <kling@serenityos.org>2021-03-25 11:01:49 +0100
commit0071dc7be4b162de700a86f0d2658e1ab36f50e6 (patch)
tree9de78a78bc6cd4067435ff6d51c3214ab4212676
parent78f0cabb17555333a3577ef8af6169352f838234 (diff)
downloadserenity-0071dc7be4b162de700a86f0d2658e1ab36f50e6.zip
TextEditor: Added a setter for soft_tab_width
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.h b/Userland/Libraries/LibGUI/TextEditor.h
index 46949770a7..a841dd0982 100644
--- a/Userland/Libraries/LibGUI/TextEditor.h
+++ b/Userland/Libraries/LibGUI/TextEditor.h
@@ -85,6 +85,7 @@ public:
void set_automatic_indentation_enabled(bool enabled) { m_automatic_indentation_enabled = enabled; }
virtual int soft_tab_width() const final { return m_soft_tab_width; }
+ void set_soft_tab_width(int width) { m_soft_tab_width = width; };
WrappingMode wrapping_mode() const { return m_wrapping_mode; }
bool is_wrapping_enabled() const { return m_wrapping_mode != WrappingMode::NoWrap; }