aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/programdock.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-08 21:42:10 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-08 21:42:10 +0100
commitbcdd7c87b1eda7dc6b294cfa0796ce7e36f12b23 (patch)
treef350edf10ff4978eb11c3b4b8baa02f77ec2c023 /qtmips_gui/programdock.cpp
parent6e6931657b7147e31f1f8d77035de3e7911f437f (diff)
downloadqtmips-bcdd7c87b1eda7dc6b294cfa0796ce7e36f12b23.tar.gz
qtmips-bcdd7c87b1eda7dc6b294cfa0796ce7e36f12b23.tar.bz2
qtmips-bcdd7c87b1eda7dc6b294cfa0796ce7e36f12b23.zip
Add skeleton for memory view
Diffstat (limited to 'qtmips_gui/programdock.cpp')
-rw-r--r--qtmips_gui/programdock.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/qtmips_gui/programdock.cpp b/qtmips_gui/programdock.cpp
index 8553494..c885083 100644
--- a/qtmips_gui/programdock.cpp
+++ b/qtmips_gui/programdock.cpp
@@ -6,16 +6,8 @@ ProgramDock::ProgramDock(QWidget *parent) : QDockWidget(parent) {
widg_layout = new QBoxLayout(QBoxLayout::TopToBottom, widg);
widg_layout->setSizeConstraint(QLayout::SetMinAndMaxSize);
- // TODO memory view
-
- /*
- ctlline = new QLineEdit(widg);
- ctlline->setText("0x00000000");
- ctlline->setInputMask("\\0\\xHHHHHHHH");
- ctlline->hide();
- widg_layout->addWidget(ctlline);
- connect(ctlline, SIGNAL(returnPressed()), this, SLOT(ctlline_returnPress()));
- */
+ memory_view = new MemoryView(widg);
+ widg_layout->addWidget(memory_view);
ctlbox_single = new QComboBox(widg);
ctlbox_single->addItems({
@@ -47,6 +39,7 @@ ProgramDock::ProgramDock(QWidget *parent) : QDockWidget(parent) {
}
ProgramDock::~ProgramDock() {
+ delete memory_view;
delete ctlbox_single;
delete ctlbox_pipelined;
delete widg_layout;