Skip to content

Commit

Permalink
Merge pull request #196 from aldelaro5/qt68-deprecation-warning
Browse files Browse the repository at this point in the history
Resolve Qt6.8 deprecation with Qt version check
  • Loading branch information
dreamsyntax authored Mar 1, 2025
2 parents a25490e + 25022d0 commit a252ba7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/GUI/MemWatcher/Dialogs/DlgAddWatchEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <QMenu>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QtGlobal>
#include <sstream>

#include "../../../DolphinProcess/DolphinAccessor.h"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a252ba7

Please sign in to comment.