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