Fix warnings about unused parameters.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Mon, 6 May 2013 08:57:53 +0000 (10:57 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 15 May 2013 09:43:38 +0000 (11:43 +0200)
Change-Id: I091a0369f2026ae820d623aadd13a3190d40a56b
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/quick/items/qquickmultipointtoucharea.cpp
src/quick/items/qquickpincharea.cpp

index a6c92ac..d6b00ce 100644 (file)
@@ -565,6 +565,8 @@ void QQuickMultiPointTouchArea::setTouchEventsEnabledForWindow(QWindow *window)
     // Save the current window, setTouchEventsEnabledForWindow will be called
     // with a null window on disable.
     _currentWindow = window;
+#else // Q_OS_MAC
+    Q_UNUSED(window)
 #endif
 }
 
index dc586dc..434eaa8 100644 (file)
@@ -562,6 +562,8 @@ void QQuickPinchArea::setTouchEventsEnabledForWindow(QWindow *window)
     // Save the current window, setTouchEventsEnabledForWindow will be called
     // with a null window on disable.
     _currentWindow = window;
+#else // Q_OS_MAC
+    Q_UNUSED(window)
 #endif
 }