mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Debugger: Transition to plain text edit
This commit is contained in:
parent
8a4617d3c2
commit
213b810279
@ -122,13 +122,13 @@ debugger_frame::debugger_frame(std::shared_ptr<gui_settings> gui_settings, QWidg
|
||||
hbox_b_main->addStretch();
|
||||
|
||||
// Misc state
|
||||
m_misc_state = new QTextEdit(this);
|
||||
m_misc_state->setLineWrapMode(QTextEdit::NoWrap);
|
||||
m_misc_state = new QPlainTextEdit(this);
|
||||
m_misc_state->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
m_misc_state->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
|
||||
|
||||
// Registers
|
||||
m_regs = new QTextEdit(this);
|
||||
m_regs->setLineWrapMode(QTextEdit::NoWrap);
|
||||
m_regs = new QPlainTextEdit(this);
|
||||
m_regs->setLineWrapMode(QPlainTextEdit::NoWrap);
|
||||
m_regs->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
|
||||
|
||||
m_debugger_list->setFont(m_mono);
|
||||
@ -1147,7 +1147,7 @@ void debugger_frame::WritePanels()
|
||||
int loc = m_misc_state->verticalScrollBar()->value();
|
||||
int hloc = m_misc_state->horizontalScrollBar()->value();
|
||||
m_misc_state->clear();
|
||||
m_misc_state->setText(qstr(cpu->dump_misc()));
|
||||
m_misc_state->setPlainText(qstr(cpu->dump_misc()));
|
||||
m_misc_state->verticalScrollBar()->setValue(loc);
|
||||
m_misc_state->horizontalScrollBar()->setValue(hloc);
|
||||
|
||||
@ -1156,7 +1156,7 @@ void debugger_frame::WritePanels()
|
||||
m_regs->clear();
|
||||
m_last_reg_state.clear();
|
||||
cpu->dump_regs(m_last_reg_state, m_dump_reg_func_data);
|
||||
m_regs->setText(qstr(m_last_reg_state));
|
||||
m_regs->setPlainText(qstr(m_last_reg_state));
|
||||
m_regs->verticalScrollBar()->setValue(loc);
|
||||
m_regs->horizontalScrollBar()->setValue(hloc);
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "custom_dock_widget.h"
|
||||
|
||||
#include <QSplitter>
|
||||
#include <QTextEdit>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QPushButton>
|
||||
#include <QComboBox>
|
||||
|
||||
@ -42,8 +42,8 @@ class debugger_frame : public custom_dock_widget
|
||||
debugger_list* m_debugger_list;
|
||||
QSplitter* m_right_splitter;
|
||||
QFont m_mono;
|
||||
QTextEdit* m_misc_state;
|
||||
QTextEdit* m_regs;
|
||||
QPlainTextEdit* m_misc_state;
|
||||
QPlainTextEdit* m_regs;
|
||||
QPushButton* m_go_to_addr;
|
||||
QPushButton* m_go_to_pc;
|
||||
QPushButton* m_btn_step;
|
||||
|
Loading…
Reference in New Issue
Block a user