summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/disassembler.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/citra_qt/debugger/disassembler.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.h
index 0deccc240..5e19d7c51 100644
--- a/src/citra_qt/debugger/disassembler.h
+++ b/src/citra_qt/debugger/disassembler.h
@@ -2,8 +2,11 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#include <QAbstractItemModel>
+#pragma once
+
+#include <QAbstractListModel>
#include <QDockWidget>
+
#include "ui_disassembler.h"
#include "common/common.h"
@@ -12,15 +15,13 @@
class QAction;
class EmuThread;
-class DisassemblerModel : public QAbstractItemModel
+class DisassemblerModel : public QAbstractListModel
{
Q_OBJECT
public:
DisassemblerModel(QObject* parent);
- QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
- QModelIndex parent(const QModelIndex& child) const override;
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;