Only grab tap-and-hold gestures on Android

We don't want to capture these on desktop environments - it
messes with dropdown menus and other click and drag type operations
This commit is contained in:
Nyall Dawson 2017-08-02 17:55:06 +10:00
parent c373c8b32e
commit 1887cfffa8

View File

@ -12616,11 +12616,16 @@ void QgisApp::onLayerError( const QString &msg )
bool QgisApp::gestureEvent( QGestureEvent *event )
{
#ifdef Q_OS_ANDROID
if ( QGesture *tapAndHold = event->gesture( Qt::TapAndHoldGesture ) )
{
tapAndHoldTriggered( static_cast<QTapAndHoldGesture *>( tapAndHold ) );
}
return true;
#else
Q_UNUSED( event );
return false;
#endif
}
void QgisApp::tapAndHoldTriggered( QTapAndHoldGesture *gesture )