diff --git a/Source/GUI/MemWatcher/Dialogs/DlgAddWatchEntry.cpp b/Source/GUI/MemWatcher/Dialogs/DlgAddWatchEntry.cpp index 7d217f30..e81b84ce 100644 --- a/Source/GUI/MemWatcher/Dialogs/DlgAddWatchEntry.cpp +++ b/Source/GUI/MemWatcher/Dialogs/DlgAddWatchEntry.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "../../../DolphinProcess/DolphinAccessor.h" @@ -38,8 +39,13 @@ DlgAddWatchEntry::~DlgAddWatchEntry() void DlgAddWatchEntry::initialiseWidgets() { m_chkBoundToPointer = new QCheckBox("This is a pointer", this); +#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) + connect(m_chkBoundToPointer, &QCheckBox::checkStateChanged, this, + &DlgAddWatchEntry::onIsPointerChanged); +#else connect(m_chkBoundToPointer, &QCheckBox::stateChanged, this, &DlgAddWatchEntry::onIsPointerChanged); +#endif m_lblValuePreview = new QLineEdit("", this); m_lblValuePreview->setReadOnly(true);