Fixed style issues
This commit is contained in:
parent
3c52f8bd38
commit
2dd4605cbb
2 changed files with 7 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue