feat: basic image flip support
This commit is contained in:
1 parent
deed477d49
commit
6a9e5e80d0
6 files changed
+25
No files matched your search
@@ -134,6 +134,17 @@ void GraphicsView::zoomView(qreal scaleFactor)
|
||||
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), m_rotateAngle);
|
||||
}
|
||||
|
||||
void GraphicsView::flipView(bool horizontal)
|
||||
{
|
||||
if (horizontal) {
|
||||
scale(-1, 1);
|
||||
} else {
|
||||
scale(1, -1);
|
||||
}
|
||||
// I guess we don't need to check if we need to trigger navigator view here
|
||||
// since fliping doesn't affact the image rectangle size.
|
||||
}
|
||||
|
||||
void GraphicsView::resetScale()
|
||||
{
|
||||
resetWithScaleAndRotate(1, m_rotateAngle);
|
||||
|
||||
Reference in new issue
Block a user