From 3b07e3f027b74b3a6fa15d39018e9a3263806e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 9 Apr 2025 09:18:22 +0200 Subject: [PATCH] deprecation starts in 6.7 --- Lab/demo/Lab/Plugins/PCA/Basic_generator_plugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lab/demo/Lab/Plugins/PCA/Basic_generator_plugin.cpp b/Lab/demo/Lab/Plugins/PCA/Basic_generator_plugin.cpp index aba383f6bee..1dcad9abcbf 100644 --- a/Lab/demo/Lab/Plugins/PCA/Basic_generator_plugin.cpp +++ b/Lab/demo/Lab/Plugins/PCA/Basic_generator_plugin.cpp @@ -142,10 +142,17 @@ public : this, &Basic_generator_plugin::on_tab_changed); connect(dock_widget, &GeneratorWidget::visibilityChanged, this, &Basic_generator_plugin::on_tab_changed); +#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) connect(dock_widget->prismCheckBox, &QCheckBox::checkStateChanged, this, &Basic_generator_plugin::on_tab_changed); connect(dock_widget->pyramidCheckBox, &QCheckBox::checkStateChanged, this, &Basic_generator_plugin::on_tab_changed); +#else + connect(dock_widget->prismCheckBox, &QCheckBox::stateChanged, + this, &Basic_generator_plugin::on_tab_changed); + connect(dock_widget->pyramidCheckBox, &QCheckBox::stateChanged, + this, &Basic_generator_plugin::on_tab_changed); +#endif } bool applicable(QAction*) const