summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2015-02-03 20:45:33 +0100
committerTony Wasserka <neobrainx@gmail.com>2015-02-03 21:11:49 +0100
commit79713d500b14ed3c71a632009c3ed8a6c2e68406 (patch)
treec19fa1b5bd52a89574e8bb28b5c5502ae862b2b3 /src/citra_qt
parentMerge pull request #483 from yuriks/cmake-fix (diff)
downloadyuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar.gz
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar.bz2
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar.lz
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar.xz
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.tar.zst
yuzu-79713d500b14ed3c71a632009c3ed8a6c2e68406.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/debugger/disassembler.cpp9
-rw-r--r--src/citra_qt/debugger/disassembler.h9
2 files changed, 6 insertions, 12 deletions
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp
index c61ace925..54d21dc90 100644
--- a/src/citra_qt/debugger/disassembler.cpp
+++ b/src/citra_qt/debugger/disassembler.cpp
@@ -17,16 +17,9 @@
#include "core/arm/skyeye_common/armdefs.h"
#include "core/arm/disassembler/arm_disasm.h"
-DisassemblerModel::DisassemblerModel(QObject* parent) : QAbstractItemModel(parent), base_address(0), code_size(0), program_counter(0), selection(QModelIndex()) {
-}
-
-QModelIndex DisassemblerModel::index(int row, int column, const QModelIndex& parent) const {
- return createIndex(row, column);
-}
+DisassemblerModel::DisassemblerModel(QObject* parent) : QAbstractListModel(parent), base_address(0), code_size(0), program_counter(0), selection(QModelIndex()) {
-QModelIndex DisassemblerModel::parent(const QModelIndex& child) const {
- return QModelIndex();
}
int DisassemblerModel::columnCount(const QModelIndex& parent) const {
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;