Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.cc @ 16702:553cfdd5d660
make white space visibility in the editor configurable
* settings-dialog.ui: insert checkboxes for white space visibility
* settings-dialog.cc(read_settings): read state for checkboxes from settings,
(write_changed_settings): write state of checkboxes into settings file
* file-editor-tab.cc(notice-settings): load white space visibility from settings
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 26 May 2013 14:49:41 +0200 |
parents | ccfbc767ff5a |
children | 5cf19370011d |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -1123,6 +1123,14 @@ else _edit_area->setAutoCompletionThreshold (-1); + if (settings->value ("editor/show_white_space",false).toBool ()) + if (settings->value ("editor/show_white_space_indent",false).toBool ()) + _edit_area->setWhitespaceVisibility (QsciScintilla::WsVisibleAfterIndent); + else + _edit_area->setWhitespaceVisibility (QsciScintilla::WsVisible); + else + _edit_area->setWhitespaceVisibility (QsciScintilla::WsInvisible); + if (settings->value ("editor/showLineNumbers", true).toBool ()) { _edit_area->setMarginLineNumbers (2, true);