Skip to content

Commit

Permalink
pbek/QOwnNotes#3019 line-number: grow font size with editor font
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed May 5, 2024
1 parent e30c978 commit 353cfb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qmarkdowntextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,11 @@ void QMarkdownTextEdit::updateLineNumberAreaWidth(int)
if (newMargins != oldMargins) {
setViewportMargins(newMargins);
}

// Grow lineNumArea font-size with the font size of the editor
QFont font = _lineNumArea->font();
font.setPointSize(this->font().pointSize());
_lineNumArea->setFont(font);
}

/**
Expand Down

0 comments on commit 353cfb0

Please sign in to comment.