Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Plain Code Widget Word Wrapping #161

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

RobertBColton
Copy link
Contributor

@RobertBColton RobertBColton commented Aug 25, 2020

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

@RobertBColton RobertBColton merged commit 770a5ad into master Aug 25, 2020
@RobertBColton RobertBColton deleted the disable-plain-wordwrap branch August 25, 2020 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants