Skip to content

Commit

Permalink
Use memory address input custom widget in **Copy Memory Range** dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian64 committed May 26, 2024
1 parent b2b7a8a commit b2db3c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Source/GUI/MemCopy/DlgCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ DlgCopy::DlgCopy(QWidget* parent) : QDialog(parent)
QVBoxLayout* entireCopyLayout = new QVBoxLayout;

QFormLayout* copySettingsLayout = new QFormLayout();
m_spnWatcherCopyAddress = new QLineEdit();
m_spnWatcherCopyAddress->setMaxLength(8);
m_spnWatcherCopyAddress = new AddressInputWidget();
copySettingsLayout->addRow("Base Address", m_spnWatcherCopyAddress);

m_spnWatcherCopySize = new QLineEdit();
Expand Down
3 changes: 2 additions & 1 deletion Source/GUI/MemCopy/DlgCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <qtextedit.h>

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

class DlgCopy : public QDialog
{
Expand Down Expand Up @@ -43,7 +44,7 @@ class DlgCopy : public QDialog
static bool uintStringToU32(std::string_view str, u32& output);
static std::string charToHexString(const char* input, size_t count, ByteStringFormats format);

QLineEdit* m_spnWatcherCopyAddress;
AddressInputWidget* m_spnWatcherCopyAddress{};
QLineEdit* m_spnWatcherCopySize;
QTextEdit* m_spnWatcherCopyOutput;
QComboBox* m_cmbViewerBytesSeparator;
Expand Down

0 comments on commit b2db3c2

Please sign in to comment.