Disregard const_cast

Took 2 minutes
This commit is contained in:
Lukas Brübach 2025-12-16 13:12:39 +01:00
parent c8a271062b
commit 9051a3a82a

View file

@ -450,8 +450,7 @@ void CardInfoPictureWidget::showEnlargedPixmap()
if (!enlargedPixmapWidget) {
enlargedPixmapWidget = new CardInfoPictureEnlargedWidget(const_cast<CardInfoPictureWidget *>(this)->window());
enlargedPixmapWidget->hide();
connect(const_cast<CardInfoPictureWidget *>(this), &QObject::destroyed, enlargedPixmapWidget,
&CardInfoPictureEnlargedWidget::deleteLater);
connect(this, &QObject::destroyed, enlargedPixmapWidget, &CardInfoPictureEnlargedWidget::deleteLater);
}
const QSize enlargedSize(static_cast<int>(size().width() * 2), static_cast<int>(size().width() * aspectRatio * 2));