Switch of wordwrap in CodeEditor and SqlCodePreview

This commit is contained in:
eelke 2018-10-08 18:43:56 +02:00
parent eefcb8fd51
commit b8cfb223be
2 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,8 @@ CodeEditor::CodeEditor(QWidget *parent)
connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine()));
connect(this, SIGNAL(textChanged()), this, SLOT(onTextChanged()));
setWordWrapMode(QTextOption::NoWrap);
updateGutterAreaWidth(0);
highlightCurrentLine();
}