mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user