mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +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;
|
||||
}
|
||||
|
||||
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 )
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue