[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

@@ -85,8 +85,11 @@ TaskMeasure::TaskMeasure()
showDelta = new QCheckBox();
showDelta->setChecked(delta);
showDeltaLabel = new QLabel(tr("Show Delta:"));
#if QT_VERSION >= QT_VERSION_CHECK(6,7,0)
connect(showDelta, &QCheckBox::checkStateChanged, this, &TaskMeasure::showDeltaChanged);
#else
connect(showDelta, &QCheckBox::stateChanged, this, &TaskMeasure::showDeltaChanged);
#endif
autoSaveAction = new QAction(tr("Auto Save"));
autoSaveAction->setCheckable(true);
autoSaveAction->setChecked(mAutoSave);