[Gui] C++ preparation for deprecation of QCheckBox…

…stateChanged -> checkStateChanged
This commit is contained in:
Syres916
2025-06-11 20:08:51 +01:00
committed by Kacper Donat
parent 2c532ed924
commit 6eecd08f7c
12 changed files with 123 additions and 4 deletions

View File

@@ -77,7 +77,11 @@ DlgSettingsLightSources::DlgSettingsLightSources(QWidget* parent)
this,
updateLightFunction);
connect(colorButton, &ColorButton::changed, this, updateLightFunction);
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
connect(enabledCheckbox, &QCheckBox::checkStateChanged, this, updateLightFunction);
#else
connect(enabledCheckbox, &QCheckBox::stateChanged, this, updateLightFunction);
#endif
};
const auto updateLight = [&](SoDirectionalLight* light,