mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-23 17:10:09 +00:00
Fixed style issues
This commit is contained in:
parent
3c52f8bd38
commit
2dd4605cbb
@ -82,8 +82,9 @@ QVariant DisassemblerModel::data(const QModelIndex& index, int role) const {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case Qt::FontRole: {
|
case Qt::FontRole:
|
||||||
if (index.column() != 2) {// 2 is the symbols column
|
{
|
||||||
|
if (index.column() == 0 || index.column() == 1) { // 2 is the symbols column
|
||||||
QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra", "config");
|
QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra", "config");
|
||||||
return QFont(settings.value("UI/debugger_font").toString());
|
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");
|
QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra", "config");
|
||||||
QFont font = QFont(settings.value("UI/debugger_font").toString());
|
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);
|
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);
|
CSPR->child(i)->setFont(1, font);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user