Commit fab48f67 authored by Robert Knight's avatar Robert Knight
Browse files

Trigger updates when selection changed by any view.

svn path=/branches/work/konsole-split-view/; revision=640770
parent 7c9f3fc5
......@@ -64,11 +64,15 @@ void ScreenWindow::setSelectionStart( int column , int line , bool columnMode )
does, check it out and fix */
_screen->setSelectionStart( column , line + _currentLine , columnMode);
emit selectionChanged();
}
void ScreenWindow::setSelectionEnd( int column , int line )
{
_screen->setSelectionEnd( column , line + _currentLine );
emit selectionChanged();
}
bool ScreenWindow::isSelected( int column , int line )
......@@ -79,6 +83,8 @@ bool ScreenWindow::isSelected( int column , int line )
void ScreenWindow::clearSelection()
{
_screen->clearSelection();
emit selectionChanged();
}
int ScreenWindow::windowLines() const
......
......@@ -160,6 +160,11 @@ signals:
*/
void outputChanged();
/**
* Emitted when the selection is changed.
*/
void selectionChanged();
private:
TEScreen* _screen; // see setScreen() , screen()
......
......@@ -132,6 +132,10 @@ ScreenWindow* TEmulation::createWindow()
window->setScreen(currentScreen);
_windows << window;
//FIXME - Used delayed updates when the selection changes
connect(window , SIGNAL(selectionChanged()),
this , SIGNAL(updateViews()));
connect(this , SIGNAL(updateViews()),
window , SLOT(notifyOutputChanged()) );
return window;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment