summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtabbar.cpp
diff options
context:
space:
mode:
authorTimur Pocheptsov <Timur.Pocheptsov@digia.com>2015-04-01 12:45:41 +0200
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2015-04-07 10:39:46 +0000
commit9b134f4e72c21ad9c9a4979248658089fd525d0a (patch)
tree216c7ebc7c2d9612130d453988eaab68dc5c9225 /src/widgets/widgets/qtabbar.cpp
parentadd3c14a28c80f6807164d689b921efcbaeff5bc (diff)
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 <gabriel.dedietrich@theqtcompany.com>
Diffstat (limited to 'src/widgets/widgets/qtabbar.cpp')
-rw-r--r--src/widgets/widgets/qtabbar.cpp2
1 files changed, 2 insertions, 0 deletions
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