Fix warnings in Qt6 builds

This commit is contained in:
totesNotRosalyn 2025-03-30 14:35:53 -05:00 committed by Adam Honse
parent 45af044cd8
commit a24a497759
4 changed files with 29 additions and 10 deletions

View file

@ -1641,7 +1641,11 @@ void OpenRGBDialog::onShowDialogMessage()
DontShowAgain = false;
QObject::connect(CheckBox_DontShowAgain, &QCheckBox::stateChanged, [this](int state)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QObject::connect(CheckBox_DontShowAgain, &QCheckBox::checkStateChanged, [this](Qt::CheckState state)
#else
QObject::connect(CheckBox_DontShowAgain, &QCheckBox::stateChanged, [this](int state)
#endif
{
if(static_cast<Qt::CheckState>(state) == Qt::CheckState::Checked)
{