enigma-dev / RadialGM

A native IDE for ENIGMA written in C++ using the Qt Framework.
GNU General Public License v3.0
46 stars 22 forks source link

Disable Plain Code Widget Word Wrapping #161

Closed RobertBColton closed 4 years ago

RobertBColton commented 4 years ago

I guess fundies doesn't like word wrapping and he's not using the Scintilla code widget, so I decided to turn off word wrapping (the default for QPlainTextEdit) in our plain code widget until #160 is completed and it can be based on the preference. This way at least our Scintilla and Plain code widgets are consistent with each other until such time. Although, due to yet another MSYS2 package issue I am not able to build our QScintilla based code widget now because I am missing the debug library.

For reference, QScintilla does no wrapping by default.

The default is that lines are not wrapped. https://www.riverbankcomputing.com/static/Docs/QScintilla/classQsciScintilla.html#ac04428d2f90c36458d68a673f107e40c

QPlainTextEdit does wrap by default.

By default, this property is set to QTextOption::WrapAtWordBoundaryOrAnywhere. https://doc.qt.io/qt-5/qplaintextedit.html#wordWrapMode-prop