Use new landscape orientation field instead.

This commit is contained in:
Lukas Brübach 2024-12-19 04:58:58 +01:00
parent a0993afd02
commit 4273de9f06

View file

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