Bug fix for updating vertical bar when using page up/down functions.
This commit is contained in:
parent
4b92abdb47
commit
ff3125cbf8
|
@ -1012,6 +1012,7 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
|
|||
{
|
||||
lineOffset = maxLineOffset;
|
||||
}
|
||||
vbar->setValue( lineOffset );
|
||||
resetCursor();
|
||||
}
|
||||
else if (event->matches(QKeySequence::MoveToPreviousPage))
|
||||
|
@ -1022,16 +1023,19 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
|
|||
{
|
||||
lineOffset = 0;
|
||||
}
|
||||
vbar->setValue( lineOffset );
|
||||
resetCursor();
|
||||
}
|
||||
else if (event->matches(QKeySequence::MoveToEndOfDocument))
|
||||
{
|
||||
lineOffset = maxLineOffset;
|
||||
vbar->setValue( lineOffset );
|
||||
resetCursor();
|
||||
}
|
||||
else if (event->matches(QKeySequence::MoveToStartOfDocument))
|
||||
{
|
||||
lineOffset = 0;
|
||||
vbar->setValue( lineOffset );
|
||||
resetCursor();
|
||||
}
|
||||
else if (event->key() == Qt::Key_Tab && (cursorPosX < 32) )
|
||||
|
|
Loading…
Reference in New Issue