git-svn-id: svn://db.shs.com.ru/libs@527 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -218,7 +218,9 @@ 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.) * 500., km);
|
||||
QPoint cp = pg->centerPoint().toPoint();
|
||||
if (!fullscr) cp = mapFromGlobal(cp);
|
||||
procZoom(cp, (pg->scaleFactor() - 1.) * 500., km);
|
||||
totalUpdate();
|
||||
} break;
|
||||
case Qt::TapAndHoldGesture: {
|
||||
|
||||
Reference in New Issue
Block a user