[Gui] C++ preparation for deprecation of QCheckBox…
…stateChanged -> checkStateChanged
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user