File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -160,19 +160,9 @@ CDockAreaTabBar::~CDockAreaTabBar()
160160// ============================================================================
161161void CDockAreaTabBar::wheelEvent (QWheelEvent* Event)
162162{
163- Event->accept ();
164- const int direction = Event->angleDelta ().y ();
165- if (direction < 0 )
166- {
167- horizontalScrollBar ()->setValue (horizontalScrollBar ()->value () + 20 );
168- }
169- else
170- {
171- horizontalScrollBar ()->setValue (horizontalScrollBar ()->value () - 20 );
172- }
163+ QCoreApplication::sendEvent (horizontalScrollBar (), Event);
173164}
174165
175-
176166// ============================================================================
177167void CDockAreaTabBar::setCurrentIndex (int index)
178168{
@@ -356,7 +346,7 @@ void CDockAreaTabBar::onCloseOtherTabsRequested()
356346 CDockWidget::DockWidgetDeleteOnClose) ? 1 : 0 ;
357347 closeTab (i);
358348
359- // If the the dock widget blocks closing, i.e. if the flag
349+ // If the dock widget blocks closing, i.e. if the flag
360350 // CustomCloseHandling is set, and the dock widget is still open,
361351 // then we do not need to correct the index
362352 if (Tab->dockWidget ()->isClosed ())
Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ private Q_SLOTS:
6565 void onTabWidgetMoved (const QPoint& GlobalPos);
6666
6767protected:
68- virtual void wheelEvent (QWheelEvent* Event) override ;
69-
68+ virtual void wheelEvent (QWheelEvent* Event) override ;
7069
7170public:
7271 using Super = QScrollArea;
You can’t perform that action at this time.
0 commit comments