Skip to content

Commit

Permalink
Disable Plain Code Widget Word Wrapping (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBColton authored Aug 25, 2020
1 parent f9c59a1 commit 770a5ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Widgets/CodeWidgetPlain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CodeWidget::CodeWidget(QWidget* parent) : QWidget(parent), _font(QFont("Courier"
QPlainTextEdit* plainTextEdit = new QPlainTextEdit(this);
this->_textWidget = plainTextEdit;
plainTextEdit->setFont(_font);
plainTextEdit->setWordWrapMode(QTextOption::NoWrap);

connect(plainTextEdit, &QPlainTextEdit::textChanged, this, &CodeWidget::codeChanged);
connect(plainTextEdit, &QPlainTextEdit::blockCountChanged, this, &CodeWidget::lineCountChanged);
Expand Down

0 comments on commit 770a5ad

Please sign in to comment.