summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-03-27 17:47:42 +0100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2015-03-30 17:53:11 +0000
commitea47d152b35158ba07a55d009f57df0e4c2a048f (patch)
tree48dc411ab01255d78b07f9939eaf4b8020e02606 /src
parent08cc9b9991ae9ab51bed5b857b6257401401ff6f (diff)
QTabBar: Disable wheel events on Mac
Many people complain about this unexpected behavior. We may consider introducing a style hint later for those few people that may want it. Change-Id: Ifab663b4b5c3a78a3544ab4408cf34f672df8c05 Task-number: QTBUG-8428 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'src')
-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 02c34d9ef6..02967e33c1 100644
--- a/src/widgets/widgets/qtabbar.cpp
+++ b/src/widgets/widgets/qtabbar.cpp
@@ -2031,10 +2031,12 @@ void QTabBar::keyPressEvent(QKeyEvent *event)
#ifndef QT_NO_WHEELEVENT
void QTabBar::wheelEvent(QWheelEvent *event)
{
+#ifndef Q_OS_MAC
Q_D(QTabBar);
int offset = event->delta() > 0 ? -1 : 1;
d->setCurrentNextEnabledIndex(offset);
QWidget::wheelEvent(event);
+#endif
}
#endif //QT_NO_WHEELEVENT