1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Added configuable tab size

(cherry picked from commit 9234bd3ff9)
This commit is contained in:
Paulb23
2016-03-11 18:10:01 +00:00
committed by Rémi Verschelde
parent 85820434de
commit 8fd4c78caf
4 changed files with 13 additions and 1 deletions

View File

@@ -3486,6 +3486,13 @@ void TextEdit::_push_current_op() {
}
void TextEdit::set_tab_size(const int p_size) {
ERR_FAIL_COND(p_size <= 0);
tab_size = p_size;
text.set_tab_size(p_size);
update();
}
void TextEdit::set_draw_tabs(bool p_draw) {
draw_tabs=p_draw;