mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 09:00:42 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user