1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-31 10:22:39 +08:00

Fix: tab bar scroll for mouse

This commit is contained in:
Ivan Ugryumov 2024-12-05 20:03:54 +03:00
parent ec437cdaa7
commit e21c302566
2 changed files with 9 additions and 0 deletions

View File

@ -157,6 +157,12 @@ CDockAreaTabBar::~CDockAreaTabBar()
}
//============================================================================
void CDockAreaTabBar::wheelEvent(QWheelEvent* Event)
{
QCoreApplication::sendEvent(horizontalScrollBar(), Event);
}
//============================================================================
void CDockAreaTabBar::setCurrentIndex(int index)
{

View File

@ -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;