From 3712b42f922d90723429f76d645e1d5cb2ccc53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Mon, 8 Apr 2019 15:44:30 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@522 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/graphic/graphic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qad/graphic/graphic.cpp b/qad/graphic/graphic.cpp index dbd3e41..4a86c83 100644 --- a/qad/graphic/graphic.cpp +++ b/qad/graphic/graphic.cpp @@ -217,7 +217,7 @@ void Graphic::procGesture(QGesture * g) { Qt::KeyboardModifiers km = Qt::NoModifier; if (gesture_angle <= 20.) km = Qt::ControlModifier; if (gesture_angle >= 70.) km = Qt::ShiftModifier; - procZoom(pg->centerPoint(), (pg->scaleFactor() - 1.) * 300., km); + procZoom(pg->centerPoint(), (pg->scaleFactor() - 1.) * 500., km); totalUpdate(); } break; case Qt::TapAndHoldGesture: { @@ -238,7 +238,7 @@ void Graphic::procZoom(QPointF view_center, double dzoom, Qt::KeyboardModifiers double px = view_center.x() - gridborder.x() - margins_.left(), py = hei - view_center.y() + margins_.height(); px = px / wid * selrect.width() + selrect.x(); py = py / hei * selrect.height() + selrect.y(); - scl = 1. - dzoom / 300.; + scl = 1. - dzoom / 500.; if (km == Qt::NoModifier) selrect.setRect(px - (px - selrect.x()) * scl, py - (py - selrect.y()) * scl, selrect.width() * scl, selrect.height() * scl); else {