diff --git a/src/plugins/texteditor/texteditor_plg.cpp b/src/plugins/texteditor/texteditor_plg.cpp index a89d07c..63e831c 100644 --- a/src/plugins/texteditor/texteditor_plg.cpp +++ b/src/plugins/texteditor/texteditor_plg.cpp @@ -166,7 +166,6 @@ TextEditorPlugin::TextEditorPlugin() { auto monospacedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); monospacedFont.setFixedPitch(true); - config.configItems.push_back(qmdiConfigItem::Builder() .setDisplayName(tr("Display font")) .setKey(Config::FontKey) diff --git a/src/widgets/qmdieditor.cpp b/src/widgets/qmdieditor.cpp index fa23a70..339add4 100644 --- a/src/widgets/qmdieditor.cpp +++ b/src/widgets/qmdieditor.cpp @@ -194,7 +194,7 @@ qmdiEditor::qmdiEditor(QWidget *p, Qutepart::ThemeManager *themes) connect(fileSystemWatcher, &QFileSystemWatcher::fileChanged, this, &qmdiEditor::on_fileChanged); fileModifications = true; - + auto fnt = QFontDatabase::systemFont(QFontDatabase::FixedFont); fnt.setFixedPitch(true); fnt.setPointSize(18); diff --git a/src/widgets/qmdieditor.h b/src/widgets/qmdieditor.h index 6328b8a..4128c0b 100644 --- a/src/widgets/qmdieditor.h +++ b/src/widgets/qmdieditor.h @@ -116,7 +116,10 @@ class qmdiEditor : public QWidget, public qmdiClient { textEditor->setLineWrapMode(mode); } inline void setDrawAnyWhitespace(bool b) { textEditor->setDrawAnyWhitespace(b); } - inline void setDrawIndentations(bool b) { textEditor->setDrawIndentations(b); } + inline void setDrawIndentations(bool b) { + textEditor->setDrawIndentations(b); + textEditor->setDrawIncorrectIndentation(b); + } inline void setBracketHighlightingEnabled(bool b) { textEditor->setBracketHighlightingEnabled(b); }