[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

@@ -199,6 +199,28 @@ void DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked()
void DlgPrefsTechDrawAdvancedImp::makeBalloonBoxConnections()
{
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
connect(ui->cbBalloonDefault,
&QCheckBox::checkStateChanged,
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
connect(ui->cbBalloonShift,
&QCheckBox::checkStateChanged,
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
connect(ui->cbBalloonControl,
&QCheckBox::checkStateChanged,
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
connect(ui->cbBalloonAlt,
&QCheckBox::checkStateChanged,
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
connect(ui->cbBalloonMeta,
&QCheckBox::checkStateChanged,
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
#else
connect(ui->cbBalloonDefault,
qOverload<int>(&QCheckBox::stateChanged),
this,
@@ -219,6 +241,7 @@ void DlgPrefsTechDrawAdvancedImp::makeBalloonBoxConnections()
qOverload<int>(&QCheckBox::stateChanged),
this,
&DlgPrefsTechDrawAdvancedImp::slotBalloonBoxChecked);
#endif
}