Windows: Ignore mouse events generated by Windows.

Task-number: QTBUG-29946

Change-Id: Idef0e7cc8bc407377e60e4a9d67c3ba78b347b76
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
Friedemann Kleint 2013-04-05 10:36:20 +02:00 committed by The Qt Project
parent 3331501022
commit 9b7c66ac7f

View File

@ -541,7 +541,6 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co
case QPlatformIntegration::ShowIsFullScreen: case QPlatformIntegration::ShowIsFullScreen:
case QPlatformIntegration::PasswordMaskDelay: case QPlatformIntegration::PasswordMaskDelay:
case QPlatformIntegration::StartDragVelocity: case QPlatformIntegration::StartDragVelocity:
case QPlatformIntegration::SynthesizeMouseFromTouchEvents:
break; // Not implemented break; // Not implemented
case QPlatformIntegration::FontSmoothingGamma: case QPlatformIntegration::FontSmoothingGamma:
return QVariant(QWindowsFontDatabase::fontSmoothingGamma()); return QVariant(QWindowsFontDatabase::fontSmoothingGamma());
@ -551,6 +550,11 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co
break; break;
case QPlatformIntegration::UseRtlExtensions: case QPlatformIntegration::UseRtlExtensions:
return QVariant(d->m_context.useRTLExtensions()); return QVariant(d->m_context.useRTLExtensions());
case QPlatformIntegration::SynthesizeMouseFromTouchEvents:
// We do not want Qt to synthesize mouse events as Windows also does that.
// Alternatively, Windows-generated touch mouse events can be identified and
// ignored by checking GetMessageExtraInfo() for MI_WP_SIGNATURE (0xFF515700).
return false;
} }
return QPlatformIntegration::styleHint(hint); return QPlatformIntegration::styleHint(hint);
} }