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()
160
160
// ============================================================================
161
161
void CDockAreaTabBar::wheelEvent (QWheelEvent* Event)
162
162
{
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);
173
164
}
174
165
175
-
176
166
// ============================================================================
177
167
void CDockAreaTabBar::setCurrentIndex (int index)
178
168
{
@@ -356,7 +346,7 @@ void CDockAreaTabBar::onCloseOtherTabsRequested()
356
346
CDockWidget::DockWidgetDeleteOnClose) ? 1 : 0 ;
357
347
closeTab (i);
358
348
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
360
350
// CustomCloseHandling is set, and the dock widget is still open,
361
351
// then we do not need to correct the index
362
352
if (Tab->dockWidget ()->isClosed ())
Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ private Q_SLOTS:
65
65
void onTabWidgetMoved (const QPoint& GlobalPos);
66
66
67
67
protected:
68
- virtual void wheelEvent (QWheelEvent* Event) override ;
69
-
68
+ virtual void wheelEvent (QWheelEvent* Event) override ;
70
69
71
70
public:
72
71
using Super = QScrollArea;
You can’t perform that action at this time.
0 commit comments