From 0071dc7be4b162de700a86f0d2658e1ab36f50e6 Mon Sep 17 00:00:00 2001 From: lucastarche Date: Mon, 15 Mar 2021 18:28:00 -0300 Subject: [PATCH] TextEditor: Added a setter for soft_tab_width --- Userland/Libraries/LibGUI/TextEditor.h | 1 + 1 file changed, 1 insertion(+) 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; }