Add "Select All" action for selecting the whole history of this session.

FEATURE:  199990
FIXED-IN: 4.8
REVIEW: 102372
This commit is contained in:
Jekyll Wu
2011-09-20 00:31:46 +08:00
parent bfc17f4a94
commit d11fd4ea18
5 changed files with 39 additions and 1 deletions

View File

@@ -146,6 +146,17 @@ void ScreenWindow::setSelectionEnd( int column , int line )
emit selectionChanged();
}
void ScreenWindow::setSelectionByLineRange(int start, int end)
{
clearSelection();
_screen->setSelectionStart( 0 , start , false);
_screen->setSelectionEnd( windowColumns() , end );
_bufferNeedsUpdate = true;
emit selectionChanged();
}
bool ScreenWindow::isSelected( int column , int line )
{
return _screen->isSelected( column , qMin(line + currentLine(),endWindowLine()) );