summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger
diff options
context:
space:
mode:
authorMathieu Vaillancourt <vaillancourtm@gmail.com>2014-04-19 00:34:03 +0200
committerMathieu Vaillancourt <vaillancourtm@gmail.com>2014-04-19 00:34:24 +0200
commitad0734acee6e3490e6b57f01cacfc233ff7e44c8 (patch)
tree0b21538e28add29dd15bdb6775626f051167f459 /src/citra_qt/debugger
parentUI/debugger changes (diff)
downloadyuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar.gz
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar.bz2
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar.lz
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar.xz
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.tar.zst
yuzu-ad0734acee6e3490e6b57f01cacfc233ff7e44c8.zip
Diffstat (limited to 'src/citra_qt/debugger')
-rw-r--r--src/citra_qt/debugger/disassembler.cpp21
-rw-r--r--src/citra_qt/debugger/disassembler.ui10
2 files changed, 2 insertions, 29 deletions
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp
index cc4cb13fa..ccc83abf2 100644
--- a/src/citra_qt/debugger/disassembler.cpp
+++ b/src/citra_qt/debugger/disassembler.cpp
@@ -23,7 +23,7 @@ DisassemblerWidget::DisassemblerWidget(QWidget* parent, EmuThread& emu_thread) :
model = new QStandardItemModel(this);
model->setColumnCount(3);
disasm_ui.treeView->setModel(model);
- disasm_ui.tableView->setModel(model);
+
RegisterHotkey("Disassembler", "Start/Stop", QKeySequence(Qt::Key_F5), Qt::ApplicationShortcut);
RegisterHotkey("Disassembler", "Step", QKeySequence(Qt::Key_F10), Qt::ApplicationShortcut);
RegisterHotkey("Disassembler", "Step into", QKeySequence(Qt::Key_F11), Qt::ApplicationShortcut);
@@ -65,16 +65,10 @@ void DisassemblerWidget::Init()
disasm_ui.treeView->resizeColumnToContents(0);
disasm_ui.treeView->resizeColumnToContents(1);
disasm_ui.treeView->resizeColumnToContents(2);
- disasm_ui.tableView->resizeColumnToContents(0);
- disasm_ui.tableView->resizeColumnToContents(1);
- disasm_ui.tableView->resizeColumnToContents(2);
QModelIndex model_index = model->index(0, 0);
disasm_ui.treeView->scrollTo(model_index);
disasm_ui.treeView->selectionModel()->setCurrentIndex(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
-
- disasm_ui.tableView->scrollTo(model_index);
- disasm_ui.tableView->selectionModel()->setCurrentIndex(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
}
void DisassemblerWidget::OnSetBreakpoint()
@@ -138,10 +132,6 @@ void DisassemblerWidget::OnCPUStepped()
QModelIndex model_index = model->index(index, 0);
disasm_ui.treeView->scrollTo(model_index);
disasm_ui.treeView->selectionModel()->setCurrentIndex(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
-
- disasm_ui.tableView->scrollTo(model_index);
- disasm_ui.tableView->selectionModel()->setCurrentIndex(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
- disasm_ui.tableView->selectionModel()->select(model_index, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
}
int DisassemblerWidget::SelectedRow()
@@ -151,11 +141,4 @@ int DisassemblerWidget::SelectedRow()
return -1;
return model->itemFromIndex(disasm_ui.treeView->selectionModel()->currentIndex())->row();
-}
-/*
-void DisassemblerWidget::paintEvent()
-{
- QPainter painter(this);
- painter.drawRect(10, 10, 50, 50);
-}
-*/ \ No newline at end of file
+} \ No newline at end of file
diff --git a/src/citra_qt/debugger/disassembler.ui b/src/citra_qt/debugger/disassembler.ui
index e65b0aa9b..bd0752aa4 100644
--- a/src/citra_qt/debugger/disassembler.ui
+++ b/src/citra_qt/debugger/disassembler.ui
@@ -70,16 +70,6 @@
</attribute>
</widget>
</item>
- <item>
- <widget class="QTableView" name="tableView">
- <property name="alternatingRowColors">
- <bool>true</bool>
- </property>
- <attribute name="headerVisible">
- <bool>false</bool>
- </attribute>
- </widget>
- </item>
</layout>
</widget>
</widget>