diff --git a/gestures.cc b/gestures.cc index 0d00fe10..12aec789 100644 --- a/gestures.cc +++ b/gestures.cc @@ -313,6 +313,9 @@ QGestureRecognizer::Result GDSwipeGestureRecognizer::recognize( QGesture * state return result; } +const qreal GDPinchGestureRecognizer::OUT_SCALE_LIMIT = 0.5; +const qreal GDPinchGestureRecognizer::IN_SCALE_LIMIT = 2; + bool handleGestureEvent( QObject * obj, QEvent * event, GestureResult & result, QPoint & point ) { diff --git a/gestures.hh b/gestures.hh index 1d07c063..fa57fa23 100644 --- a/gestures.hh +++ b/gestures.hh @@ -83,8 +83,8 @@ protected: class GDPinchGestureRecognizer : public QGestureRecognizer { public: - static const qreal OUT_SCALE_LIMIT = 0.5; - static const qreal IN_SCALE_LIMIT = 2; + static const qreal OUT_SCALE_LIMIT; + static const qreal IN_SCALE_LIMIT; GDPinchGestureRecognizer() {} private: