diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-03-29 03:01:25 +0200 |
|---|---|---|
| committer | spycrab <spycrab@users.noreply.github.com> | 2018-03-29 03:02:34 +0200 |
| commit | 8cb497cab2a407fb902c8e4478a0ae82619e93d6 (patch) | |
| tree | 382f03efe2c9003fcb0638a917052ec46b09f315 /Source/Core/DolphinQt2/Config/LogWidget.cpp | |
| parent | 03a6a9b24017f8a236869e7968daac7aaabb8f1d (diff) | |
Qt/LogWidget: Add "Debugger Font" option
Diffstat (limited to 'Source/Core/DolphinQt2/Config/LogWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/LogWidget.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/Config/LogWidget.cpp b/Source/Core/DolphinQt2/Config/LogWidget.cpp index ced9c76fb0..1529cbccb9 100644 --- a/Source/Core/DolphinQt2/Config/LogWidget.cpp +++ b/Source/Core/DolphinQt2/Config/LogWidget.cpp @@ -40,6 +40,8 @@ LogWidget::LogWidget(QWidget* parent) : QDockWidget(parent), m_timer(new QTimer( connect(m_timer, &QTimer::timeout, this, &LogWidget::UpdateLog); m_timer->start(UPDATE_LOG_DELAY); + connect(&Settings::Instance(), &Settings::DebugFontChanged, this, &LogWidget::UpdateFont); + LogManager::GetInstance()->RegisterListener(LogListener::LOG_WINDOW_LISTENER, this); } @@ -97,6 +99,9 @@ void LogWidget::UpdateFont() f = QFont(QStringLiteral("Monospace")); f.setStyleHint(QFont::TypeWriter); break; + case 2: // Debugger font + f = Settings::Instance().GetDebugFont(); + break; } m_log_text->setFont(f); } @@ -110,7 +115,7 @@ void LogWidget::CreateWidgets() m_log_font = new QComboBox; m_log_clear = new QPushButton(tr("Clear")); - m_log_font->addItems({tr("Default Font"), tr("Monospaced Font")}); + m_log_font->addItems({tr("Default Font"), tr("Monospaced Font"), tr("Selected Font")}); auto* log_layout = new QGridLayout; m_tab_log->setLayout(log_layout); |
