From 9b134f4e72c21ad9c9a4979248658089fd525d0a Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Wed, 1 Apr 2015 12:45:41 +0200 Subject: [PATCH] Add Q_UNUSED for parameter (OS X) Ifdefs exclude the code on OS X, but there is still unused parameter and annoying compiler (either warning or error, depending on ...). Change-Id: I913c25b4f96ebe275a6b1d15873bccf4aebe9e7a Reviewed-by: Gabriel de Dietrich --- src/widgets/widgets/qtabbar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/widgets/qtabbar.cpp b/src/widgets/widgets/qtabbar.cpp index 02967e33c1..b2973bd8b3 100644 --- a/src/widgets/widgets/qtabbar.cpp +++ b/src/widgets/widgets/qtabbar.cpp @@ -2036,6 +2036,8 @@ void QTabBar::wheelEvent(QWheelEvent *event) int offset = event->delta() > 0 ? -1 : 1; d->setCurrentNextEnabledIndex(offset); QWidget::wheelEvent(event); +#else + Q_UNUSED(event) #endif } #endif //QT_NO_WHEELEVENT