mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
less branches in QImage::mirrored()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
393186b696
commit
c799f944f0
1 changed files with 3 additions and 5 deletions
|
@ -3480,12 +3480,10 @@ QImage QImage::mirrored(bool horizontal, bool vertical) const
|
|||
return *this;
|
||||
|
||||
QTransform transform;
|
||||
if (horizontal && !vertical) {
|
||||
if (horizontal) {
|
||||
transform.rotate(-180.0, Qt::YAxis);
|
||||
} else if (horizontal && vertical) {
|
||||
transform.rotate(-180.0, Qt::YAxis);
|
||||
transform.rotate(-180.0, Qt::XAxis);
|
||||
} else if (!horizontal && vertical) {
|
||||
}
|
||||
if (vertical) {
|
||||
transform.rotate(-180.0, Qt::XAxis);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue