Gestures: Move static floating-point data members initialization from header to source file

This commit is contained in:
Abs62 2014-05-11 19:53:39 +04:00
parent 54d8432369
commit 04dbba265b
2 changed files with 5 additions and 2 deletions

View file

@ -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 )
{

View file

@ -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: