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:
parent
ec437cdaa7
commit
e21c302566
@ -157,6 +157,12 @@ CDockAreaTabBar::~CDockAreaTabBar()
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
void CDockAreaTabBar::wheelEvent(QWheelEvent* Event)
|
||||
{
|
||||
QCoreApplication::sendEvent(horizontalScrollBar(), Event);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
void CDockAreaTabBar::setCurrentIndex(int index)
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user