mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22: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
|
QPixmap transformedPixmap = resizedPixmap; // Default pixmap
|
||||||
if (info && (info->getProperty("layout") == "split" || info->getProperty("layout") == "planar" ||
|
if (info && info->getLandscapeOrientation()) {
|
||||||
info->getProperty("maintype") == "Battle")) {
|
|
||||||
// Rotate pixmap 90 degrees to the left
|
// Rotate pixmap 90 degrees to the left
|
||||||
QTransform transform;
|
QTransform transform;
|
||||||
transform.rotate(90);
|
transform.rotate(90);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue