Fix for build on Windows.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-04 23:11:30 +03:00
parent 8e2f8f67eb
commit ddd71403ad
3 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@
#include <QLineF> #include <QLineF>
#include <QPainterPath> #include <QPainterPath>
#include <QPointF> #include <QPointF>
#include <QtCore/qmath.h>
#include "../container/vformula.h" #include "../container/vformula.h"

View File

@ -33,6 +33,7 @@
#include "../options.h" #include "../options.h"
#include "vpointf.h" #include "vpointf.h"
#include <QLineF> #include <QLineF>
#include <QtCore/qmath.h>
#ifdef Q_CC_GNU #ifdef Q_CC_GNU
#pragma GCC diagnostic push #pragma GCC diagnostic push

View File

@ -42,7 +42,7 @@
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
GraphicsViewZoom::GraphicsViewZoom(QGraphicsView* view) GraphicsViewZoom::GraphicsViewZoom(QGraphicsView* view)
: QObject(view), _view(view), _modifiers(Qt::ControlModifier), _zoom_factor_base(1.0015), : QObject(view), _view(view), _modifiers(Qt::ControlModifier), _zoom_factor_base(1.0015),
target_scene_pos(QPointF()), target_viewport_pos(QPointF()), _numScheduledScalings(0), anim(nullptr) target_scene_pos(QPointF()), target_viewport_pos(QPointF()), anim(nullptr), _numScheduledScalings(0)
{ {
_view->viewport()->installEventFilter(this); _view->viewport()->installEventFilter(this);
_view->setMouseTracking(true); _view->setMouseTracking(true);