From 6767d95b259fc8cfee37579b12b89e866c9d10b9 Mon Sep 17 00:00:00 2001 From: Codebuff Date: Sun, 18 Oct 2026 16:32:59 +0000 Subject: [PATCH] Fix Qt5 API: change QCheckBox::checkStateChanged to stateChanged(int) The checkStateChanged signal was removed in modern Qt versions. Replace with the correct stateChanged(int) signal. --- src/panels/findreplace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/panels/findreplace.cpp b/src/panels/findreplace.cpp index d093dbf..cbccb39 100644 --- a/src/panels/findreplace.cpp +++ b/src/panels/findreplace.cpp @@ -75,9 +75,9 @@ FindReplaceBar::FindReplaceBar(QWidget *parent) connect(m_replaceBtn, &QPushButton::clicked, this, &FindReplaceBar::onReplaceClicked); connect(m_replaceAllBtn, &QPushButton::clicked, this, &FindReplaceBar::onReplaceAllClicked); connect(m_toggleReplaceBtn, &QPushButton::clicked, this, &FindReplaceBar::onToggleReplace); - connect(m_caseSensitive, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); - connect(m_wholeWord, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); - connect(m_regex, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState) { updateMatches(); }); + connect(m_caseSensitive, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); + connect(m_wholeWord, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); + connect(m_regex, &QCheckBox::stateChanged, this, [this](int) { updateMatches(); }); }