mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Use new landscape orientation field instead.
This commit is contained in:
parent
a0993afd02
commit
4273de9f06
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue