mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Fix deprecation of CheckBox::stateChanged
This commit is contained in:
parent
5b53f5e4b0
commit
9b014ccf66
@ -12,7 +12,11 @@ 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)
|
||||
connect(this, &QCheckBox::checkStateChanged, this, &ContentTypeFilter::onStateChanged);
|
||||
#else
|
||||
connect(this, &QCheckBox::stateChanged, this, &ContentTypeFilter::onStateChanged);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ContentTypeFilter::onStateChanged(int state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user