Skip to content

Commit

Permalink
qmdiEditor: fix whitespace config
Browse files Browse the repository at this point in the history
Qutepart has this anoying config for whitespace, indentations.. which I
don't like. I might change this eventually.

Now, whitespace seems to work as I need.
  • Loading branch information
diegoiast committed Jan 5, 2025
1 parent e0de398 commit 3ba6781
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/plugins/texteditor/texteditor_plg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/qmdieditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion src/widgets/qmdieditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3ba6781

Please sign in to comment.