mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
Rotate planes as well.
This commit is contained in:
parent
bef33426e8
commit
f2cea7defb
1 changed files with 2 additions and 1 deletions
|
|
@ -150,7 +150,8 @@ void CardInfoPictureWidget::paintEvent(QPaintEvent *event)
|
||||||
}
|
}
|
||||||
|
|
||||||
QPixmap transformedPixmap = resizedPixmap; // Default pixmap
|
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
|
// 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