mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
cmake-gui: Port away from deprecated API in Qt >= 6.7
This commit is contained in:
@@ -26,21 +26,23 @@ void WarningMessagesDialog::setInitialValues()
|
||||
|
||||
void WarningMessagesDialog::setupSignals()
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0))
|
||||
static auto const checkStateChanged = &QCheckBox::checkStateChanged;
|
||||
#else
|
||||
static auto const checkStateChanged = &QCheckBox::stateChanged;
|
||||
#endif
|
||||
QObject::connect(this->buttonBox, &QDialogButtonBox::accepted, this,
|
||||
&WarningMessagesDialog::doAccept);
|
||||
|
||||
QObject::connect(this->suppressDeveloperWarnings, &QCheckBox::stateChanged,
|
||||
this,
|
||||
QObject::connect(this->suppressDeveloperWarnings, checkStateChanged, this,
|
||||
&WarningMessagesDialog::doSuppressDeveloperWarningsChanged);
|
||||
QObject::connect(
|
||||
this->suppressDeprecatedWarnings, &QCheckBox::stateChanged, this,
|
||||
this->suppressDeprecatedWarnings, checkStateChanged, this,
|
||||
&WarningMessagesDialog::doSuppressDeprecatedWarningsChanged);
|
||||
|
||||
QObject::connect(this->developerWarningsAsErrors, &QCheckBox::stateChanged,
|
||||
this,
|
||||
QObject::connect(this->developerWarningsAsErrors, checkStateChanged, this,
|
||||
&WarningMessagesDialog::doDeveloperWarningsAsErrorsChanged);
|
||||
QObject::connect(
|
||||
this->deprecatedWarningsAsErrors, &QCheckBox::stateChanged, this,
|
||||
this->deprecatedWarningsAsErrors, checkStateChanged, this,
|
||||
&WarningMessagesDialog::doDeprecatedWarningsAsErrorsChanged);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user