[Gui] C++ preparation for deprecation of QCheckBox…
…stateChanged -> checkStateChanged
This commit is contained in:
@@ -1203,7 +1203,11 @@ protected:
|
||||
|
||||
languageChange();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
QObject::connect(gridAutoSpacing, &QCheckBox::checkStateChanged, [this](int state) {
|
||||
#else
|
||||
QObject::connect(gridAutoSpacing, &QCheckBox::stateChanged, [this](int state) {
|
||||
#endif
|
||||
auto* sketchView = getView();
|
||||
|
||||
if (sketchView) {
|
||||
@@ -1459,12 +1463,19 @@ protected:
|
||||
|
||||
languageChange();
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
QObject::connect(snapToObjects, &QCheckBox::checkStateChanged, [this](int state) {
|
||||
#else
|
||||
QObject::connect(snapToObjects, &QCheckBox::stateChanged, [this](int state) {
|
||||
#endif
|
||||
ParameterGrp::handle hGrp = this->getParameterPath();
|
||||
hGrp->SetBool("SnapToObjects", state == Qt::Checked);
|
||||
});
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
QObject::connect(snapToGrid, &QCheckBox::checkStateChanged, [this](int state) {
|
||||
#else
|
||||
QObject::connect(snapToGrid, &QCheckBox::stateChanged, [this](int state) {
|
||||
#endif
|
||||
ParameterGrp::handle hGrp = this->getParameterPath();
|
||||
hGrp->SetBool("SnapToGrid", state == Qt::Checked);
|
||||
});
|
||||
|
||||
@@ -910,10 +910,17 @@ TaskSketcherConstraints::TaskSketcherConstraints(ViewProviderSketch* sketchView)
|
||||
&ConstraintView::emitShowSelection3DVisibility,
|
||||
this,
|
||||
&TaskSketcherConstraints::onListWidgetConstraintsEmitShowSelection3DVisibility);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
QObject::connect(ui->filterBox,
|
||||
&QCheckBox::checkStateChanged,
|
||||
this,
|
||||
&TaskSketcherConstraints::onFilterBoxStateChanged);
|
||||
#else
|
||||
QObject::connect(ui->filterBox,
|
||||
&QCheckBox::stateChanged,
|
||||
this,
|
||||
&TaskSketcherConstraints::onFilterBoxStateChanged);
|
||||
#endif
|
||||
QObject::connect(
|
||||
ui->filterButton, &QToolButton::clicked, ui->filterButton, &QToolButton::showMenu);
|
||||
QObject::connect(ui->showHideButton,
|
||||
|
||||
@@ -1250,10 +1250,17 @@ void TaskSketcherElements::connectSignals()
|
||||
&QListWidget::itemChanged,
|
||||
this,
|
||||
&TaskSketcherElements::onListMultiFilterItemChanged);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
QObject::connect(ui->filterBox,
|
||||
&QCheckBox::checkStateChanged,
|
||||
this,
|
||||
&TaskSketcherElements::onFilterBoxStateChanged);
|
||||
#else
|
||||
QObject::connect(ui->filterBox,
|
||||
&QCheckBox::stateChanged,
|
||||
this,
|
||||
&TaskSketcherElements::onFilterBoxStateChanged);
|
||||
#endif
|
||||
QObject::connect(
|
||||
ui->settingsButton, &QToolButton::clicked, ui->settingsButton, &QToolButton::showMenu);
|
||||
QObject::connect(std::as_const(ui->settingsButton)->actions()[0],
|
||||
|
||||
@@ -101,10 +101,17 @@ void TaskSketcherSolverAdvanced::setupConnections()
|
||||
qOverload<int>(&QSpinBox::valueChanged),
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onSpinBoxMaxIterValueChanged);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
connect(ui->checkBoxSketchSizeMultiplier,
|
||||
&QCheckBox::checkStateChanged,
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onCheckBoxSketchSizeMultiplierStateChanged);
|
||||
#else
|
||||
connect(ui->checkBoxSketchSizeMultiplier,
|
||||
&QCheckBox::stateChanged,
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onCheckBoxSketchSizeMultiplierStateChanged);
|
||||
#endif
|
||||
connect(ui->lineEditConvergence,
|
||||
&QLineEdit::editingFinished,
|
||||
this,
|
||||
@@ -129,10 +136,17 @@ void TaskSketcherSolverAdvanced::setupConnections()
|
||||
qOverload<int>(&QSpinBox::valueChanged),
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onSpinBoxRedundantSolverMaxIterationsValueChanged);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
connect(ui->checkBoxRedundantSketchSizeMultiplier,
|
||||
&QCheckBox::checkStateChanged,
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onCheckBoxRedundantSketchSizeMultiplierStateChanged);
|
||||
#else
|
||||
connect(ui->checkBoxRedundantSketchSizeMultiplier,
|
||||
&QCheckBox::stateChanged,
|
||||
this,
|
||||
&TaskSketcherSolverAdvanced::onCheckBoxRedundantSketchSizeMultiplierStateChanged);
|
||||
#endif
|
||||
connect(ui->comboBoxDebugMode,
|
||||
qOverload<int>(&QComboBox::currentIndexChanged),
|
||||
this,
|
||||
|
||||
Reference in New Issue
Block a user