WindowsPlugin: Fix MinGW warnings
authorKai Koehne <kai.koehne@digia.com>
Thu, 27 Sep 2012 08:43:44 +0000 (10:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 27 Sep 2012 12:59:13 +0000 (14:59 +0200)
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>
src/plugins/platforms/windows/qwindowscontext.cpp
src/plugins/platforms/windows/qwindowsintegration.cpp

index 99dfcf4..a9102ff 100644 (file)
@@ -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;
         }
     }
 
index baf306b..463e012 100644 (file)
@@ -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());