mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
c373c8b32e
commit
1887cfffa8
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user