From 74740ef4418717b1562101d6e472297bf26a61df Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 27 Jan 2017 15:43:21 +0100 Subject: [PATCH] ComboTabBar: Make wheel scrolling faster --- src/lib/tabwidget/combotabbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tabwidget/combotabbar.cpp b/src/lib/tabwidget/combotabbar.cpp index bad309c40..2386bd341 100644 --- a/src/lib/tabwidget/combotabbar.cpp +++ b/src/lib/tabwidget/combotabbar.cpp @@ -1528,7 +1528,7 @@ void TabBarScrollWidget::scrollByWheel(QWheelEvent* event) } // Fast scrolling with just wheel scroll - int factor = qMax(m_scrollBar->pageStep() / 3, m_scrollBar->singleStep()); + int factor = qMax(qRound(m_scrollBar->pageStep() / 1.5), m_scrollBar->singleStep()); if ((event->modifiers() & Qt::ControlModifier) || (event->modifiers() & Qt::ShiftModifier)) { factor = m_scrollBar->pageStep(); }