Commit 3d1b7190 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add call to resetTransform to retrieve 1:1 zoom

parent 04270309
......@@ -144,6 +144,7 @@ Changelog
1.3.12
- Render properly parameterless procedures that are declared in the .pr
file but without a textbox
- When going to parent scene, fixed rendering issue
1.3.11
- Parser is more tolerant to incomplete systems
......
......@@ -1313,6 +1313,9 @@ class SDL_View(QtGui.QGraphicsView, object):
self.scale(0.8, 0.8)
elif event.matches(QtGui.QKeySequence.ZoomIn):
self.scale(1.2, 1.2)
elif event.key() == Qt.Key_Q and event.modifiers() == Qt.ControlModifier:
# Reset zoom with Ctrl-Q
self.resetTransform()
elif event.matches(QtGui.QKeySequence.Save):
self.save_diagram()
elif event.key() == Qt.Key_F3 or (event.key() == Qt.Key_G and
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment