Mercurial > octave
changeset 24763:95142fc85564
make variable editor display-only page readonly with no line wrapping
* variable-editor.cc (variable_editor::make_disp_view):
Make QTextEdit object read-only with no line wrapping.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Feb 2018 00:41:45 -0500 |
parents | ed2d9ef336a7 |
children | cea7557d91ef |
files | libgui/src/variable-editor.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc Wed Feb 14 23:50:55 2018 -0500 +++ b/libgui/src/variable-editor.cc Thu Feb 15 00:41:45 2018 -0500 @@ -542,7 +542,9 @@ QString str = v_data.toString (); + viewer->setLineWrapMode (QTextEdit::NoWrap); viewer->setPlainText (str); + viewer->setReadOnly (true); return viewer; }