scroll to bottom on input

This commit is contained in:
Petr Vanek
2011-12-12 15:36:19 +01:00
parent 2be1dbb707
commit ccb7b887ce
+4
View File
@@ -2553,6 +2553,10 @@ void TerminalDisplay::keyPressEvent( QKeyEvent* event )
if ( emitKeyPressSignal )
emit keyPressedSignal(event);
// a little hack to ensure terminal goes into its "edit" line
_scrollBar->setValue(_scrollBar->maximum());
// end of the hack
event->accept();
}