summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-01-24 09:39:21 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-01-24 09:39:21 (GMT)
commit5502ac79065fc220e3731d29c722be75013e2c35 (patch)
tree4f2485ab742495febd643ad0760d7b8509bfb689 /src/gui
parentb1c715f8214233f5b573ed58fc89c9dd70beabb4 (diff)
downloadQt-5502ac79065fc220e3731d29c722be75013e2c35.zip
Qt-5502ac79065fc220e3731d29c722be75013e2c35.tar.gz
Qt-5502ac79065fc220e3731d29c722be75013e2c35.tar.bz2
Cocoa: remove compiler warning
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwidget_mac.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index b3450ab..03f496e 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4981,6 +4981,7 @@ void QWidgetPrivate::registerDropSite(bool on)
void QWidgetPrivate::registerTouchWindow(bool enable)
{
+ Q_UNUSED(enable);
#ifdef QT_MAC_USE_COCOA
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
if (QSysInfo::MacintoshVersion < QSysInfo::MV_10_6)
@@ -5007,8 +5008,6 @@ void QWidgetPrivate::registerTouchWindow(bool enable)
[view setAcceptsTouchEvents:NO];
}
}
-#else
- Q_UNUSED(on);
#endif
#endif
}