From 04dbba265b5040b753799184930ac7de61405aae Mon Sep 17 00:00:00 2001 From: Abs62 Date: Sun, 11 May 2014 19:53:39 +0400 Subject: [PATCH] Gestures: Move static floating-point data members initialization from header to source file --- gestures.cc | 3 +++ gestures.hh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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: