From 640a30fb7bfc164d72ac4513bc1f9b9c54ba7d06 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Wed, 27 Nov 2024 08:32:54 +0100 Subject: [PATCH] Support new QT --- transition-table.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transition-table.cpp b/transition-table.cpp index fa5a4f9..6ba83ae 100644 --- a/transition-table.cpp +++ b/transition-table.cpp @@ -482,7 +482,11 @@ TransitionTableDialog::TransitionTableDialog(QMainWindow *parent) : QDialog(pare mainLayout->setColumnStretch(1, 1); mainLayout->setColumnStretch(2, 1); +#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) + connect(checkbox, &QCheckBox::checkStateChanged, [this]() { SelectAllChanged(); }); +#else connect(checkbox, &QCheckBox::stateChanged, [this]() { SelectAllChanged(); }); +#endif idx = 0; fromCombo = new QComboBox();