Skip to content

Commit

Permalink
Use memory address input custom widget in **Memory Viewer** dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian64 committed May 26, 2024
1 parent 81ab4f5 commit abe51a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/GUI/MemViewer/MemViewerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MemViewerWidget::~MemViewerWidget()

void MemViewerWidget::initialiseWidgets()
{
m_txtJumpAddress = new QLineEdit(this);
m_txtJumpAddress = new AddressInputWidget(this);
connect(m_txtJumpAddress, &QLineEdit::textChanged, this,
&MemViewerWidget::onJumpToAddressTextChanged);
m_btnGoToMEM1Start = new QPushButton(tr("Go to MEM1"));
Expand Down
4 changes: 3 additions & 1 deletion Source/GUI/MemViewer/MemViewerWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include "MemViewer.h"

#include "../Widgets/AddressInputWidget.h"

class MemViewerWidget : public QWidget
{
Q_OBJECT
Expand Down Expand Up @@ -35,7 +37,7 @@ class MemViewerWidget : public QWidget
void initialiseWidgets();
void makeLayouts();

QLineEdit* m_txtJumpAddress{};
AddressInputWidget* m_txtJumpAddress{};
QPushButton* m_btnGoToMEM1Start{};
QPushButton* m_btnGoToSecondaryRAMStart{};
QTimer* m_updateMemoryTimer{};
Expand Down

0 comments on commit abe51a8

Please sign in to comment.