mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Wrestle with Qt Checkboxes.
This commit is contained in:
parent
bde7f51cd5
commit
d0a64e1d6f
1 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ DeckPreviewTagDialog::DeckPreviewTagDialog(const QStringList &knownTags, const Q
|
|||
tagListView_->addItem(item);
|
||||
tagListView_->setItemWidget(item, tagWidget);
|
||||
|
||||
connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this,
|
||||
connect(tagWidget->checkBox(), &QCheckBox::toggled, this,
|
||||
&DeckPreviewTagDialog::onCheckboxStateChanged);
|
||||
}
|
||||
|
||||
|
|
@ -163,7 +163,7 @@ void DeckPreviewTagDialog::addTag()
|
|||
tagListView_->setItemWidget(item, tagWidget);
|
||||
activeTags_.append(newTag);
|
||||
|
||||
connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this, &DeckPreviewTagDialog::onCheckboxStateChanged);
|
||||
connect(tagWidget->checkBox(), &QCheckBox::toggled, this, &DeckPreviewTagDialog::onCheckboxStateChanged);
|
||||
|
||||
// Clear the input field
|
||||
newTagInput_->clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue