mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 16:02:14 -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();
|
QList<QString> validGroups = getGroupCriteriaValueList();
|
||||||
|
|
||||||
qDebug() << "DeckCardZoneDisplayWidget: Checking for obsolete card groups.";
|
|
||||||
qDebug() << "Valid groups (should remain):" << validGroups;
|
|
||||||
|
|
||||||
for (OverlappedCardGroupDisplayWidget *cardGroupDisplayWidget : cardGroupsDisplayWidgets) {
|
for (OverlappedCardGroupDisplayWidget *cardGroupDisplayWidget : cardGroupsDisplayWidgets) {
|
||||||
qDebug() << "Checking group:" << cardGroupDisplayWidget->cardGroupCategory;
|
|
||||||
|
|
||||||
if (!validGroups.contains(cardGroupDisplayWidget->cardGroupCategory)) {
|
if (!validGroups.contains(cardGroupDisplayWidget->cardGroupCategory)) {
|
||||||
qDebug() << "Deleting group:" << cardGroupDisplayWidget->cardGroupCategory;
|
|
||||||
cardGroupLayout->removeWidget(cardGroupDisplayWidget);
|
cardGroupLayout->removeWidget(cardGroupDisplayWidget);
|
||||||
cardGroupDisplayWidget->deleteLater(); // Properly delete the widget after the event loop cycles
|
cardGroupDisplayWidget->deleteLater(); // Properly delete the widget after the event loop cycles
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "Keeping group:" << cardGroupDisplayWidget->cardGroupCategory;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "Finished checking for obsolete card groups.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckCardZoneDisplayWidget::onActiveGroupCriteriaChanged(QString _activeGroupCriteria)
|
void DeckCardZoneDisplayWidget::onActiveGroupCriteriaChanged(QString _activeGroupCriteria)
|
||||||
{
|
{
|
||||||
activeGroupCriteria = _activeGroupCriteria;
|
activeGroupCriteria = _activeGroupCriteria;
|
||||||
qDebug() << "DeckCardZoneDisplayWidget says: We group by " << activeGroupCriteria << " and display cards";
|
|
||||||
displayCards();
|
displayCards();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeckCardZoneDisplayWidget::onActiveSortCriteriaChanged(QString _activeSortCriteria)
|
void DeckCardZoneDisplayWidget::onActiveSortCriteriaChanged(QString _activeSortCriteria)
|
||||||
{
|
{
|
||||||
activeSortCriteria = _activeSortCriteria;
|
activeSortCriteria = _activeSortCriteria;
|
||||||
qDebug() << "DeckCardZoneDisplayWidget says: we sort by" << activeSortCriteria << " and emit a signal";
|
|
||||||
emit activeSortCriteriaChanged(activeSortCriteria);
|
emit activeSortCriteriaChanged(activeSortCriteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -138,10 +128,5 @@ QList<QString> DeckCardZoneDisplayWidget::getGroupCriteriaValueList()
|
||||||
groupCriteriaValues.removeDuplicates();
|
groupCriteriaValues.removeDuplicates();
|
||||||
groupCriteriaValues.sort();
|
groupCriteriaValues.sort();
|
||||||
|
|
||||||
qDebug() << "These are the group by criteria values";
|
|
||||||
for (QString groupCriteria : groupCriteriaValues) {
|
|
||||||
qDebug() << groupCriteria;
|
|
||||||
}
|
|
||||||
|
|
||||||
return groupCriteriaValues;
|
return groupCriteriaValues;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -134,14 +134,12 @@ void VisualDeckEditorWidget::resizeEvent(QResizeEvent *event)
|
||||||
void VisualDeckEditorWidget::actChangeActiveGroupCriteria()
|
void VisualDeckEditorWidget::actChangeActiveGroupCriteria()
|
||||||
{
|
{
|
||||||
activeGroupCriteria = groupByComboBox->currentText();
|
activeGroupCriteria = groupByComboBox->currentText();
|
||||||
qDebug() << "VDE says we group by " << activeGroupCriteria;
|
|
||||||
emit activeGroupCriteriaChanged(activeGroupCriteria);
|
emit activeGroupCriteriaChanged(activeGroupCriteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualDeckEditorWidget::actChangeActiveSortCriteria()
|
void VisualDeckEditorWidget::actChangeActiveSortCriteria()
|
||||||
{
|
{
|
||||||
activeSortCriteria = sortByComboBox->currentText();
|
activeSortCriteria = sortByComboBox->currentText();
|
||||||
qDebug() << "VDE says we sort by " << activeSortCriteria;
|
|
||||||
emit activeSortCriteriaChanged(activeSortCriteria);
|
emit activeSortCriteriaChanged(activeSortCriteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue