diff options
author | bunnei <bunneidev@gmail.com> | 2015-09-07 23:52:07 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-09-07 23:52:07 +0200 |
commit | 0f2005c370c90e7670cb47c3e8e5f62631534617 (patch) | |
tree | 720208cdbc0ee98a9a31aa22421be407a93f7971 /src/citra_qt/debugger/disassembler.cpp | |
parent | Merge pull request #1121 from aroulin/shader-minor-fixes (diff) | |
parent | citra-qt: Use monospace font on Disassembler and ARM Registers (diff) | |
download | yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar.gz yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar.bz2 yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar.lz yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar.xz yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.tar.zst yuzu-0f2005c370c90e7670cb47c3e8e5f62631534617.zip |
Diffstat (limited to 'src/citra_qt/debugger/disassembler.cpp')
-rw-r--r-- | src/citra_qt/debugger/disassembler.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp index d3629bbf6..f23d823e8 100644 --- a/src/citra_qt/debugger/disassembler.cpp +++ b/src/citra_qt/debugger/disassembler.cpp @@ -9,6 +9,8 @@ #include "../bootmanager.h" #include "../hotkeys.h" +#include "../util/util.h" + #include "core/memory.h" #include "core/core.h" @@ -17,7 +19,6 @@ #include "core/arm/arm_interface.h" #include "core/arm/disassembler/arm_disasm.h" - DisassemblerModel::DisassemblerModel(QObject* parent) : QAbstractListModel(parent), base_address(0), code_size(0), program_counter(0), selection(QModelIndex()) { } @@ -78,6 +79,14 @@ QVariant DisassemblerModel::data(const QModelIndex& index, int role) const { break; } + case Qt::FontRole: + { + if (index.column() == 0 || index.column() == 1) { // 2 is the symbols column + return GetMonospaceFont(); + } + break; + } + default: break; } |