Include long setName in checkbox label

This commit is contained in:
Lukas Brübach 2025-02-08 01:36:17 +01:00
parent cdc7fbc965
commit 2cfd5b1a67

View file

@ -384,7 +384,8 @@ SetEntryWidget::SetEntryWidget(DlgSelectSetForCards *_parent, const QString &_se
setLayout(layout); setLayout(layout);
QHBoxLayout *headerLayout = new QHBoxLayout(); QHBoxLayout *headerLayout = new QHBoxLayout();
checkBox = new QCheckBox(setName, this); CardSetPtr set = CardDatabaseManager::getInstance()->getSet(setName);
checkBox = new QCheckBox("(" + set->getShortName() + ") - " + set->getLongName(), this);
connect(checkBox, &QCheckBox::checkStateChanged, parent, &DlgSelectSetForCards::updateCardLists); connect(checkBox, &QCheckBox::checkStateChanged, parent, &DlgSelectSetForCards::updateCardLists);
expandButton = new QPushButton("+", this); expandButton = new QPushButton("+", this);
countLabel = new QLabel(QString::number(count), this); countLabel = new QLabel(QString::number(count), this);