mirror of
https://github.com/KDE/konsole.git
synced 2026-05-08 14:46:44 -04:00
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:
@@ -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()) );
|
||||
|
||||
Reference in New Issue
Block a user