diff --git a/Source/GUI/MemCopy/DlgCopy.cpp b/Source/GUI/MemCopy/DlgCopy.cpp index 1b74cd3a..a11afac5 100644 --- a/Source/GUI/MemCopy/DlgCopy.cpp +++ b/Source/GUI/MemCopy/DlgCopy.cpp @@ -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(); diff --git a/Source/GUI/MemCopy/DlgCopy.h b/Source/GUI/MemCopy/DlgCopy.h index 73bdf066..9e4250d6 100644 --- a/Source/GUI/MemCopy/DlgCopy.h +++ b/Source/GUI/MemCopy/DlgCopy.h @@ -10,6 +10,7 @@ #include #include "../GUICommon.h" +#include "../Widgets/AddressInputWidget.h" class DlgCopy : public QDialog { @@ -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;