Rotate planes as well.

This commit is contained in:
Lukas Brübach 2024-12-18 19:04:31 +01:00
parent bef33426e8
commit f2cea7defb

View file

@ -150,7 +150,8 @@ void CardInfoPictureWidget::paintEvent(QPaintEvent *event)
}
QPixmap transformedPixmap = resizedPixmap; // Default pixmap
if (info && (info->getProperty("layout") == "split" || info->getProperty("maintype") == "Battle")) {
if (info && (info->getProperty("layout") == "split" || info->getProperty("layout") == "planar" ||
info->getProperty("maintype") == "Battle")) {
// Rotate pixmap 90 degrees to the left
QTransform transform;
transform.rotate(90);