mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -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_->addItem(item);
|
||||||
tagListView_->setItemWidget(item, tagWidget);
|
tagListView_->setItemWidget(item, tagWidget);
|
||||||
|
|
||||||
connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this,
|
connect(tagWidget->checkBox(), &QCheckBox::toggled, this,
|
||||||
&DeckPreviewTagDialog::onCheckboxStateChanged);
|
&DeckPreviewTagDialog::onCheckboxStateChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -163,7 +163,7 @@ void DeckPreviewTagDialog::addTag()
|
||||||
tagListView_->setItemWidget(item, tagWidget);
|
tagListView_->setItemWidget(item, tagWidget);
|
||||||
activeTags_.append(newTag);
|
activeTags_.append(newTag);
|
||||||
|
|
||||||
connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this, &DeckPreviewTagDialog::onCheckboxStateChanged);
|
connect(tagWidget->checkBox(), &QCheckBox::toggled, this, &DeckPreviewTagDialog::onCheckboxStateChanged);
|
||||||
|
|
||||||
// Clear the input field
|
// Clear the input field
|
||||||
newTagInput_->clear();
|
newTagInput_->clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue