[Gui] C++ preparation for deprecation of QCheckBox…
…stateChanged -> checkStateChanged
This commit is contained in:
@@ -124,8 +124,13 @@ DlgExpressionInput::DlgExpressionInput(const App::ObjectIdentifier & _path,
|
||||
|
||||
DlgExpressionInput::~DlgExpressionInput()
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
disconnect(ui->checkBoxVarSets, &QCheckBox::checkStateChanged,
|
||||
this, &DlgExpressionInput::onCheckVarSets);
|
||||
#else
|
||||
disconnect(ui->checkBoxVarSets, &QCheckBox::stateChanged,
|
||||
this, &DlgExpressionInput::onCheckVarSets);
|
||||
#endif
|
||||
disconnect(ui->comboBoxVarSet, qOverload<int>(&QComboBox::currentIndexChanged),
|
||||
this, &DlgExpressionInput::onVarSetSelected);
|
||||
disconnect(ui->lineEditGroup, &QLineEdit::textChanged,
|
||||
@@ -202,8 +207,13 @@ void DlgExpressionInput::initializeVarSets()
|
||||
ui->labelInfoActive->setAlignment(Qt::AlignTop | Qt::AlignLeft);
|
||||
ui->labelInfoActive->setWordWrap(true);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
|
||||
connect(ui->checkBoxVarSets, &QCheckBox::checkStateChanged,
|
||||
this, &DlgExpressionInput::onCheckVarSets);
|
||||
#else
|
||||
connect(ui->checkBoxVarSets, &QCheckBox::stateChanged,
|
||||
this, &DlgExpressionInput::onCheckVarSets);
|
||||
#endif
|
||||
connect(ui->comboBoxVarSet, qOverload<int>(&QComboBox::currentIndexChanged),
|
||||
this, &DlgExpressionInput::onVarSetSelected);
|
||||
connect(ui->lineEditGroup, &QLineEdit::textChanged,
|
||||
|
||||
Reference in New Issue
Block a user