mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -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) {
|
||||
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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue