Add option for setting SQL editor font

See issue #299.
This commit is contained in:
Martin Kleusberg
2015-05-06 19:54:02 +02:00
parent 9cbb4d538d
commit 2715d75f01
4 changed files with 41 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ SqlExecutionArea::SqlExecutionArea(QWidget* parent, DBBrowserDB* _db) :
ui->setupUi(this);
// Set font
QFont logfont("Monospace");
QFont logfont(PreferencesDialog::getSettingsValue("editor", "font").toString());
logfont.setStyleHint(QFont::TypeWriter);
logfont.setPointSize(PreferencesDialog::getSettingsValue("log", "fontsize").toInt());
ui->editErrors->setFont(logfont);