mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Remove some debugs.
This commit is contained in:
parent
9307d617c6
commit
3482f95c55
2 changed files with 0 additions and 17 deletions
|
|
@ -93,35 +93,25 @@ void DeckCardZoneDisplayWidget::deleteCardGroupIfItDoesNotExist()
|
|||
|
||||
QList<QString> validGroups = getGroupCriteriaValueList();
|
||||
|
||||
qDebug() << "DeckCardZoneDisplayWidget: Checking for obsolete card groups.";
|
||||
qDebug() << "Valid groups (should remain):" << validGroups;
|
||||
|
||||
for (OverlappedCardGroupDisplayWidget *cardGroupDisplayWidget : cardGroupsDisplayWidgets) {
|
||||
qDebug() << "Checking group:" << cardGroupDisplayWidget->cardGroupCategory;
|
||||
|
||||
if (!validGroups.contains(cardGroupDisplayWidget->cardGroupCategory)) {
|
||||
qDebug() << "Deleting group:" << cardGroupDisplayWidget->cardGroupCategory;
|
||||
cardGroupLayout->removeWidget(cardGroupDisplayWidget);
|
||||
cardGroupDisplayWidget->deleteLater(); // Properly delete the widget after the event loop cycles
|
||||
} else {
|
||||
qDebug() << "Keeping group:" << cardGroupDisplayWidget->cardGroupCategory;
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << "Finished checking for obsolete card groups.";
|
||||
}
|
||||
|
||||
void DeckCardZoneDisplayWidget::onActiveGroupCriteriaChanged(QString _activeGroupCriteria)
|
||||
{
|
||||
activeGroupCriteria = _activeGroupCriteria;
|
||||
qDebug() << "DeckCardZoneDisplayWidget says: We group by " << activeGroupCriteria << " and display cards";
|
||||
displayCards();
|
||||
}
|
||||
|
||||
void DeckCardZoneDisplayWidget::onActiveSortCriteriaChanged(QString _activeSortCriteria)
|
||||
{
|
||||
activeSortCriteria = _activeSortCriteria;
|
||||
qDebug() << "DeckCardZoneDisplayWidget says: we sort by" << activeSortCriteria << " and emit a signal";
|
||||
emit activeSortCriteriaChanged(activeSortCriteria);
|
||||
}
|
||||
|
||||
|
|
@ -138,10 +128,5 @@ QList<QString> DeckCardZoneDisplayWidget::getGroupCriteriaValueList()
|
|||
groupCriteriaValues.removeDuplicates();
|
||||
groupCriteriaValues.sort();
|
||||
|
||||
qDebug() << "These are the group by criteria values";
|
||||
for (QString groupCriteria : groupCriteriaValues) {
|
||||
qDebug() << groupCriteria;
|
||||
}
|
||||
|
||||
return groupCriteriaValues;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,14 +134,12 @@ void VisualDeckEditorWidget::resizeEvent(QResizeEvent *event)
|
|||
void VisualDeckEditorWidget::actChangeActiveGroupCriteria()
|
||||
{
|
||||
activeGroupCriteria = groupByComboBox->currentText();
|
||||
qDebug() << "VDE says we group by " << activeGroupCriteria;
|
||||
emit activeGroupCriteriaChanged(activeGroupCriteria);
|
||||
}
|
||||
|
||||
void VisualDeckEditorWidget::actChangeActiveSortCriteria()
|
||||
{
|
||||
activeSortCriteria = sortByComboBox->currentText();
|
||||
qDebug() << "VDE says we sort by " << activeSortCriteria;
|
||||
emit activeSortCriteriaChanged(activeSortCriteria);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue