WindowsPlugin: Fix MinGW warnings
Fix warnings: Change-Id: Ia68607f72087c0085e528fee0e6270b80692e389 warning: enumeration value 'SynthesizeMouseFromTouchEvents' not handled in switch warning: suggest parentheses around assignment used as truth value Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
e86e49f02e
commit
0189315c8c
@ -555,8 +555,9 @@ QWindowsWindow *QWindowsContext::findClosestPlatformWindow(HWND hwnd) const
|
||||
// Find the closest parent that has a platform window.
|
||||
if (!window) {
|
||||
for (HWND w = hwnd; w; w = GetParent(w)) {
|
||||
if (window = d->m_windows.value(w))
|
||||
return window;
|
||||
window = d->m_windows.value(w);
|
||||
if (window)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -428,6 +428,7 @@ 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());
|
||||
|
Loading…
Reference in New Issue
Block a user