From 4273de9f06a6323bfb404ef021baa24bff45ce6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 19 Dec 2024 04:58:58 +0100 Subject: [PATCH] Use new landscape orientation field instead. --- .../src/client/ui/widgets/cards/card_info_picture_widget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp index 3df11fd0b..f9d4d68bf 100644 --- a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp +++ b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp @@ -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);