set default color to black

This commit is contained in:
m
2015-06-23 03:09:03 +08:00
parent 9af70c042e
commit 3b5053c0a0
+1 -1
View File
@@ -104,10 +104,10 @@ void SqlTextEdit::reloadKeywords()
void SqlTextEdit::reloadSettings()
{
// Set syntax highlighting settings
sqlLexer->setDefaultColor(Qt::black);
QFont defaultfont(PreferencesDialog::getSettingsValue("editor", "font").toString());
defaultfont.setStyleHint(QFont::TypeWriter);
defaultfont.setPointSize(PreferencesDialog::getSettingsValue("editor", "fontsize").toInt());
sqlLexer->setColor(Qt::black, QsciLexerSQL::Default);
sqlLexer->setFont(defaultfont);
setupSyntaxHighlightingFormat("comment", QsciLexerSQL::Comment);
setupSyntaxHighlightingFormat("comment", QsciLexerSQL::CommentLine);