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)
|
void TerminalWidget::wheelEvent(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
event->accept();
|
verticalScrollBar()->event(event);
|
||||||
|
|
||||||
QPoint delta = event->angleDelta();
|
|
||||||
scrollContentsBy(0, delta.y() / 24);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TerminalWidget::focusInEvent(QFocusEvent *)
|
void TerminalWidget::focusInEvent(QFocusEvent *)
|
||||||
|
|||||||
Reference in New Issue
Block a user