From 3b2a72068f86258511fae8fd4764f0f535e5d4c8 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 25 May 2016 11:41:20 +0200 Subject: Flickable: MovementEndingTimerInterval is used only on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After 9b8d0bff, some compilers complain that it's an unused variable. Change-Id: I4a89ce7a7d73cfc039a2e2d1ad48ec7d073cf7cc Reviewed-by: Jan Arve Sæther --- src/quick/items/qquickflickable.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/quick/items/qquickflickable.cpp') diff --git a/src/quick/items/qquickflickable.cpp b/src/quick/items/qquickflickable.cpp index 7d602db57e..32d445dbc5 100644 --- a/src/quick/items/qquickflickable.cpp +++ b/src/quick/items/qquickflickable.cpp @@ -59,7 +59,9 @@ static const int FlickThreshold = 15; // will ensure the Flickable retains the grab on consecutive flicks. static const int RetainGrabVelocity = 100; +#ifdef Q_OS_OSX static const int MovementEndingTimerInterval = 100; +#endif static qreal EaseOvershoot(qreal t) { return qAtan(t); -- cgit v1.2.3