summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/disassembler.cpp
diff options
context:
space:
mode:
authorKloen <jlcc20@gmail.com>2015-09-07 10:33:18 +0200
committerKloen <jlcc20@gmail.com>2015-09-07 21:02:45 +0200
commita962c30df1f56c135be05db10328d81d6eff1cbf (patch)
tree93a8d09b8f5940bfc4529fdfd9ffa2d3656faf72 /src/citra_qt/debugger/disassembler.cpp
parentMerge pull request #1117 from yuriks/fix-glad-build (diff)
downloadyuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar.gz
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar.bz2
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar.lz
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar.xz
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.tar.zst
yuzu-a962c30df1f56c135be05db10328d81d6eff1cbf.zip
Diffstat (limited to '')
-rw-r--r--src/citra_qt/debugger/disassembler.cpp11
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;
}