diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-04-05 10:36:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-05 15:05:24 +0200 |
commit | 9b7c66ac7f0ed3c240ccbabe2b460d7ad4171749 (patch) | |
tree | 0baaf47588ccec8217c4e66a9a1a541230694fca /src/plugins | |
parent | 33315010224edbf4b80d727502b24459ea8806ae (diff) |
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>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsintegration.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp index 30e0478e64..03e4925c3b 100644 --- a/src/plugins/platforms/windows/qwindowsintegration.cpp +++ b/src/plugins/platforms/windows/qwindowsintegration.cpp @@ -541,7 +541,6 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co case QPlatformIntegration::ShowIsFullScreen: case QPlatformIntegration::PasswordMaskDelay: case QPlatformIntegration::StartDragVelocity: - case QPlatformIntegration::SynthesizeMouseFromTouchEvents: break; // Not implemented case QPlatformIntegration::FontSmoothingGamma: return QVariant(QWindowsFontDatabase::fontSmoothingGamma()); @@ -551,6 +550,11 @@ QVariant QWindowsIntegration::styleHint(QPlatformIntegration::StyleHint hint) co break; case QPlatformIntegration::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); } |