aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-09 14:26:35 -0400
committerKen Moore <ken@ixsystems.com>2017-06-09 14:26:35 -0400
commit1a40663edebd0cdc4a0ebea6bfe4f0c95f362b02 (patch)
treeb2d5a1710c1a21c59304b5b7ec005a17644ec0e3 /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
parentGet the new syntax highlighting support framework functional with the C++ rul... (diff)
downloadlumina-1a40663edebd0cdc4a0ebea6bfe4f0c95f362b02.tar.gz
lumina-1a40663edebd0cdc4a0ebea6bfe4f0c95f362b02.tar.bz2
lumina-1a40663edebd0cdc4a0ebea6bfe4f0c95f362b02.zip
Clean up the loading/changing of font family/size (still need to update the font boxes to reflect the currently visible tab).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
index 9c264fca..46ca056b 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
@@ -61,8 +61,7 @@ void SyntaxFile::SetupDocument(QPlainTextEdit* editor){
QString type = formatObj.value("font_type").toString();
QFont font = editor->document()->defaultFont(); // current font
if(type=="monospace"){
- font = QFont("monospace");
- //font = QFontDatabase::systemFont(QFontDatabase::FixedFont); //get the default fixed-size font for the system
+ font.setFamily("monospace"); //Make sure we don't change other properties of the font like size
}
font.setStyle(QFont::StyleNormal);
font.setStyleStrategy(QFont::PreferAntialias);
bgstack15