mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 20:33:58 -07:00
Disregard const_cast
Took 2 minutes
This commit is contained in:
parent
c8a271062b
commit
9051a3a82a
1 changed files with 1 additions and 2 deletions
|
|
@ -450,8 +450,7 @@ void CardInfoPictureWidget::showEnlargedPixmap()
|
||||||
if (!enlargedPixmapWidget) {
|
if (!enlargedPixmapWidget) {
|
||||||
enlargedPixmapWidget = new CardInfoPictureEnlargedWidget(const_cast<CardInfoPictureWidget *>(this)->window());
|
enlargedPixmapWidget = new CardInfoPictureEnlargedWidget(const_cast<CardInfoPictureWidget *>(this)->window());
|
||||||
enlargedPixmapWidget->hide();
|
enlargedPixmapWidget->hide();
|
||||||
connect(const_cast<CardInfoPictureWidget *>(this), &QObject::destroyed, enlargedPixmapWidget,
|
connect(this, &QObject::destroyed, enlargedPixmapWidget, &CardInfoPictureEnlargedWidget::deleteLater);
|
||||||
&CardInfoPictureEnlargedWidget::deleteLater);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const QSize enlargedSize(static_cast<int>(size().width() * 2), static_cast<int>(size().width() * aspectRatio * 2));
|
const QSize enlargedSize(static_cast<int>(size().width() * 2), static_cast<int>(size().width() * aspectRatio * 2));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue