Merge pull request #1212 from kiwix/Issue#1199-wrong-version

Corrected version for checkStateChanged
This commit is contained in:
Kelson 2024-09-15 12:28:11 +02:00 committed by GitHub
commit ae4ba04093
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ ContentTypeFilter::ContentTypeFilter(QString name, QWidget *parent)
m_states[Qt::Checked] = gt("no");
setText(gt(m_name) + " : " + m_states[checkState()]);
setStyleSheet("* { color: #666666; }");
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(this, &QCheckBox::checkStateChanged, this, &ContentTypeFilter::onStateChanged);
#else
connect(this, &QCheckBox::stateChanged, this, &ContentTypeFilter::onStateChanged);