void GraphicsView_ViewPort::mouseMoveEvent(QMouseEvent *event)
{
+ if ((event->modifiers() & Qt::ShiftModifier) && (event->buttons() & Qt::LeftButton))
+ activateZoomAction();
+
if (zooming && (event->buttons() & Qt::LeftButton))
{
QPoint currentPos = event->pos();
void GraphicsView_ViewPort::activateZoomAction()
{
zooming = true;
+ fittingArea = false;
setCursor(*zoomCursor);
}
void GraphicsView_ViewPort::activateFitAreaAction()
{
fittingArea = true;
+ zooming = false;
setCursor(Qt::PointingHandCursor);
}