Set default monospace font to "monospace".

Let Qt derive which one to use for the default.
It can always be overridden by the config dialog.
This commit is contained in:
Ernie Pasveer
2022-10-10 16:52:28 -05:00
parent 1bfac01995
commit d2a05f653b
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ SeerConsoleWidget::SeerConsoleWidget (QWidget* parent) : QWidget(parent) {
setWindowTitle("Seer Console");
QFont font;
font.setFamily("monospace [Consolas]");
font.setFamily("monospace");
font.setFixedPitch(true);
font.setStyleHint(QFont::TypeWriter);
@@ -372,7 +372,7 @@ void SeerConsoleWidget::readSettings() {
if (settings.contains("font")) {
f.fromString(settings.value("font").toString());
}else{
f = QFont("Source Code Pro", 10);
f = QFont("monospace", 10);
}
textEdit->setFont(f);
}settings.endGroup();