summaryrefslogtreecommitdiffstats
path: root/gui/pages/LogPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-11-09 19:48:35 +0100
committerPetr Mrázek <peterix@gmail.com>2014-11-09 19:48:35 +0100
commit24a0635b62071aee56c090283b8c8527174be039 (patch)
treec6db5f75c70fd5d907fbe210d8d2b74a3c329666 /gui/pages/LogPage.cpp
parent2e9284951c7364dc766a406099ce3a779773abb1 (diff)
downloadMultiMC-24a0635b62071aee56c090283b8c8527174be039.tar
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.gz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.lz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.xz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.zip
Allow changing the console font family
Diffstat (limited to 'gui/pages/LogPage.cpp')
-rw-r--r--gui/pages/LogPage.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/pages/LogPage.cpp b/gui/pages/LogPage.cpp
index f16e3477..719eba03 100644
--- a/gui/pages/LogPage.cpp
+++ b/gui/pages/LogPage.cpp
@@ -1,6 +1,8 @@
#include "LogPage.h"
#include "ui_LogPage.h"
+#include "MultiMC.h"
+
#include <QIcon>
#include <QScrollBar>
#include <QShortcut>
@@ -18,11 +20,8 @@ LogPage::LogPage(MinecraftProcess *proc, QWidget *parent)
// create the format and set its font
defaultFormat = new QTextCharFormat(ui->text->currentCharFormat());
- QFont font;
- font.setFamily("Courier");
- font.setStyleHint(QFont::Monospace);
- font.setFixedPitch(true);
- defaultFormat->setFont(font);
+ QString fontFamily = MMC->settings()->get("ConsoleFont").toString();
+ defaultFormat->setFont(QFont(fontFamily));
auto findShortcut = new QShortcut(QKeySequence(QKeySequence::Find), this);
connect(findShortcut, SIGNAL(activated()), SLOT(findActivated()));