Skip to content

Commit abe51a8

Browse files
committed
Use memory address input custom widget in **Memory Viewer** dialog.
1 parent 81ab4f5 commit abe51a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Source/GUI/MemViewer/MemViewerWidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ MemViewerWidget::~MemViewerWidget()
2424

2525
void MemViewerWidget::initialiseWidgets()
2626
{
27-
m_txtJumpAddress = new QLineEdit(this);
27+
m_txtJumpAddress = new AddressInputWidget(this);
2828
connect(m_txtJumpAddress, &QLineEdit::textChanged, this,
2929
&MemViewerWidget::onJumpToAddressTextChanged);
3030
m_btnGoToMEM1Start = new QPushButton(tr("Go to MEM1"));

Source/GUI/MemViewer/MemViewerWidget.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "MemViewer.h"
88

9+
#include "../Widgets/AddressInputWidget.h"
10+
911
class MemViewerWidget : public QWidget
1012
{
1113
Q_OBJECT
@@ -35,7 +37,7 @@ class MemViewerWidget : public QWidget
3537
void initialiseWidgets();
3638
void makeLayouts();
3739

38-
QLineEdit* m_txtJumpAddress{};
40+
AddressInputWidget* m_txtJumpAddress{};
3941
QPushButton* m_btnGoToMEM1Start{};
4042
QPushButton* m_btnGoToSecondaryRAMStart{};
4143
QTimer* m_updateMemoryTimer{};

0 commit comments

Comments
 (0)