mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Corrected version for checkStateChanged
It is added since Qt 6.7.0
This commit is contained in:
parent
19bcdb4943
commit
ae0e75de8c
@ -12,7 +12,7 @@ ContentTypeFilter::ContentTypeFilter(QString name, QWidget *parent)
|
|||||||
m_states[Qt::Checked] = gt("no");
|
m_states[Qt::Checked] = gt("no");
|
||||||
setText(gt(m_name) + " : " + m_states[checkState()]);
|
setText(gt(m_name) + " : " + m_states[checkState()]);
|
||||||
setStyleSheet("* { color: #666666; }");
|
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);
|
connect(this, &QCheckBox::checkStateChanged, this, &ContentTypeFilter::onStateChanged);
|
||||||
#else
|
#else
|
||||||
connect(this, &QCheckBox::stateChanged, this, &ContentTypeFilter::onStateChanged);
|
connect(this, &QCheckBox::stateChanged, this, &ContentTypeFilter::onStateChanged);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user