Corrected version for checkStateChanged

It is added since Qt 6.7.0
This commit is contained in:
ShaopengLin 2024-09-14 18:45:51 -04:00
parent 19bcdb4943
commit ae0e75de8c

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);