Improve the gesture event with a trackpad (better zoom behavior, and add the scroll with two fingers)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4266 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-11-18 09:51:53 +00:00
parent 5c48714f07
commit 27843d1097
3 changed files with 50 additions and 68 deletions

View File

@@ -1098,9 +1098,9 @@ void QETDiagramEditor::zoomGroupTriggered(QAction *action)
if (!dv || value.isEmpty()) return;
if (value == "zoom_in")
dv->zoomIn();
dv->zoom(1.15);
else if (value == "zoom_out")
dv->zoomOut();
dv->zoom(0.85);
else if (value == "zoom_content")
dv->zoomContent();
else if (value == "zoom_fit")