fix: UTF-8 characters (when out of comments or quotes) are drawn with different font

This commit is contained in:
m
2015-06-23 02:46:09 +08:00
parent 5e0d1ba34e
commit 84ba7d8a17

View File

@@ -108,7 +108,7 @@ void SqlTextEdit::reloadSettings()
QFont defaultfont(PreferencesDialog::getSettingsValue("editor", "font").toString());
defaultfont.setStyleHint(QFont::TypeWriter);
defaultfont.setPointSize(PreferencesDialog::getSettingsValue("editor", "fontsize").toInt());
sqlLexer->setDefaultFont(defaultfont);
sqlLexer->setFont(defaultfont);
setupSyntaxHighlightingFormat("comment", QsciLexerSQL::Comment);
setupSyntaxHighlightingFormat("comment", QsciLexerSQL::CommentLine);
setupSyntaxHighlightingFormat("comment", QsciLexerSQL::CommentDoc);