clear appearance of selection after pasting. Don't extend selection while

pasting.

svn path=/trunk/kdebase/konsole/; revision=33262
This commit is contained in:
Preston Brown
1999-11-08 17:43:34 +00:00
parent 752db15764
commit 1e3c3e2795

View File

@@ -520,6 +520,9 @@ void TEWidget::mousePressEvent(QMouseEvent* ev)
void TEWidget::mouseMoveEvent(QMouseEvent* ev)
{
if (actSel == 0) return;
if (ev->state() & MidButton)
return; // don't extend selection while pasting
//if ( !contentsRect().contains(ev->pos()) ) return;
QPoint tL = contentsRect().topLeft();
int tLx = tL.x();
@@ -715,6 +718,7 @@ void TEWidget::emitSelection()
text.replace(QRegExp("\n"), "\r");
QKeyEvent e(QEvent::KeyPress, 0,0,0, text);
emit keyPressedSignal(&e); // expose as a big fat keypress event
emit clearSelectionSignal();
}
}