forked from qt-creator/qt-creator
Terminal: Fix scroll behavior
Change-Id: I357a5d04baab881cf89c57fdf3336bd1e0077976 Reviewed-by: Burak Hancerli <burak.hancerli@qt.io> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -776,10 +776,7 @@ int TerminalWidget::sb_clear()
|
||||
|
||||
void TerminalWidget::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
event->accept();
|
||||
|
||||
QPoint delta = event->angleDelta();
|
||||
scrollContentsBy(0, delta.y() / 24);
|
||||
verticalScrollBar()->event(event);
|
||||
}
|
||||
|
||||
void TerminalWidget::focusInEvent(QFocusEvent *)
|
||||
|
||||
Reference in New Issue
Block a user