mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Cleanup auto-generated comments.
Took 8 minutes
This commit is contained in:
parent
39efe0ad19
commit
2a5bba7ff9
4 changed files with 3 additions and 14 deletions
|
|
@ -1,7 +1,3 @@
|
|||
//
|
||||
// Created by Ascor on 25-Nov-25.
|
||||
//
|
||||
|
||||
#ifndef COCKATRICE_BACKGROUND_PLATE_WIDGET_H
|
||||
#define COCKATRICE_BACKGROUND_PLATE_WIDGET_H
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
//
|
||||
// Created by Ascor on 25-Nov-25.
|
||||
//
|
||||
|
||||
#ifndef COCKATRICE_COLOR_BAR_H
|
||||
#define COCKATRICE_COLOR_BAR_H
|
||||
|
||||
|
|
|
|||
|
|
@ -118,10 +118,7 @@ void ArchidektApiResponseDeckDisplayWidget::constructZoneWidgetsFromDeckListMode
|
|||
new DeckCardZoneDisplayWidget(zoneContainer, model, nullptr, persistent,
|
||||
model->data(persistent.sibling(persistent.row(), 1), Qt::EditRole).toString(),
|
||||
"maintype", {"name"}, DisplayType::Overlap, 20, 10, cardSizeSlider);
|
||||
/*connect(zoneDisplayWidget, &DeckCardZoneDisplayWidget::cardHovered, this, &VisualDeckEditorWidget::onHover);
|
||||
connect(zoneDisplayWidget, &DeckCardZoneDisplayWidget::cardClicked, this, &VisualDeckEditorWidget::onCardClick);
|
||||
connect(zoneDisplayWidget, &DeckCardZoneDisplayWidget::requestCleanup, this,
|
||||
&VisualDeckEditorWidget::cleanupInvalidZones);
|
||||
/*
|
||||
connect(this, &VisualDeckEditorWidget::activeSortCriteriaChanged, zoneDisplayWidget,
|
||||
&DeckCardZoneDisplayWidget::onActiveSortCriteriaChanged);
|
||||
connect(this, &VisualDeckEditorWidget::activeGroupCriteriaChanged, zoneDisplayWidget,
|
||||
|
|
|
|||
|
|
@ -188,11 +188,11 @@ void ArchidektApiResponseDeckEntryDisplayWidget::updateScaledPreview()
|
|||
|
||||
previewWidget->setFixedSize(newWidth, newHeight);
|
||||
|
||||
// 1. Scale image to fill the preview area (crop edges)
|
||||
// Scale image to fill the preview area (crop edges)
|
||||
QPixmap scaled =
|
||||
originalPixmap.scaled(newWidth, newHeight, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
|
||||
|
||||
// 2. Crop to exact target size
|
||||
// Crop to exact target size
|
||||
QRect cropRect((scaled.width() - newWidth) / 2, (scaled.height() - newHeight) / 2, newWidth, newHeight);
|
||||
QPixmap cropped = scaled.copy(cropRect);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue