From 2dd4605cbbc4ab1b179af367fd66dc9fef35f53a Mon Sep 17 00:00:00 2001 From: Gareth Poole Date: Sun, 2 Nov 2014 17:00:42 -0500 Subject: [PATCH] Fixed style issues --- src/citra_qt/debugger/disassembler.cpp | 5 +++-- src/citra_qt/debugger/registers.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp index f306c7bca..304981b22 100644 --- a/src/citra_qt/debugger/disassembler.cpp +++ b/src/citra_qt/debugger/disassembler.cpp @@ -82,8 +82,9 @@ QVariant DisassemblerModel::data(const QModelIndex& index, int role) const { break; } - case Qt::FontRole: { - if (index.column() != 2) {// 2 is the symbols column + case Qt::FontRole: + { + if (index.column() == 0 || index.column() == 1) { // 2 is the symbols column QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra", "config"); return QFont(settings.value("UI/debugger_font").toString()); } diff --git a/src/citra_qt/debugger/registers.cpp b/src/citra_qt/debugger/registers.cpp index ee119f139..310ba7f84 100644 --- a/src/citra_qt/debugger/registers.cpp +++ b/src/citra_qt/debugger/registers.cpp @@ -41,9 +41,11 @@ RegistersWidget::RegistersWidget(QWidget* parent) : QDockWidget(parent) QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra", "config"); QFont font = QFont(settings.value("UI/debugger_font").toString()); - for (int i = 0; i < registers->childCount(); ++i) // Set Registers to display in Courier + // Set Registers to display in Courier + for (int i = 0; i < registers->childCount(); ++i) registers->child(i)->setFont(1, font); - for (int i = 0; i < CSPR->childCount(); ++i) // Set CSPR to display in Courier + // Set CSPR to display in Courier + for (int i = 0; i < CSPR->childCount(); ++i) CSPR->child(i)->setFont(1, font); }