diff --git a/src/DockAreaTabBar.cpp b/src/DockAreaTabBar.cpp index d0adaac..724aedc 100644 --- a/src/DockAreaTabBar.cpp +++ b/src/DockAreaTabBar.cpp @@ -157,6 +157,12 @@ CDockAreaTabBar::~CDockAreaTabBar() } +//============================================================================ +void CDockAreaTabBar::wheelEvent(QWheelEvent* Event) +{ + QCoreApplication::sendEvent(horizontalScrollBar(), Event); +} + //============================================================================ void CDockAreaTabBar::setCurrentIndex(int index) { diff --git a/src/DockAreaTabBar.h b/src/DockAreaTabBar.h index e4b94f1..60557fe 100644 --- a/src/DockAreaTabBar.h +++ b/src/DockAreaTabBar.h @@ -64,6 +64,9 @@ private Q_SLOTS: void onCloseOtherTabsRequested(); void onTabWidgetMoved(const QPoint& GlobalPos); +protected: + virtual void wheelEvent(QWheelEvent* Event) override; + public: using Super = QScrollArea;