Qt5 compatibility stuff again.

This commit is contained in:
Lukas Brübach 2025-06-18 23:28:51 +02:00
parent ab8ea9deb3
commit 076f2446e0

View file

@ -437,11 +437,7 @@ SetEntryWidget::SetEntryWidget(DlgSelectSetForCards *_parent, const QString &_se
QHBoxLayout *headerLayout = new QHBoxLayout();
CardSetPtr set = CardDatabaseManager::getInstance()->getSet(setName);
checkBox = new QCheckBox("(" + set->getShortName() + ") - " + set->getLongName(), this);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
connect(checkBox, &QCheckBox::checkStateChanged, parent, &DlgSelectSetForCards::updateLayoutOrder);
#else
connect(checkBox, &QCheckBox::stateChanged, parent, &DlgSelectSetForCards::updateLayoutOrder);
#endif
expandButton = new QPushButton("+", this);
countLabel = new QLabel(QString::number(count), this);