mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Gestures: Move static floating-point data members initialization from header to source file
This commit is contained in:
parent
54d8432369
commit
04dbba265b
|
@ -313,6 +313,9 @@ QGestureRecognizer::Result GDSwipeGestureRecognizer::recognize( QGesture * state
|
||||||
return result;
|
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,
|
bool handleGestureEvent( QObject * obj, QEvent * event, GestureResult & result,
|
||||||
QPoint & point )
|
QPoint & point )
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,8 +83,8 @@ protected:
|
||||||
class GDPinchGestureRecognizer : public QGestureRecognizer
|
class GDPinchGestureRecognizer : public QGestureRecognizer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const qreal OUT_SCALE_LIMIT = 0.5;
|
static const qreal OUT_SCALE_LIMIT;
|
||||||
static const qreal IN_SCALE_LIMIT = 2;
|
static const qreal IN_SCALE_LIMIT;
|
||||||
|
|
||||||
GDPinchGestureRecognizer() {}
|
GDPinchGestureRecognizer() {}
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue