From d1b137adb92c99e95d3bfe8d7210fe0fc603fb44 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Oct 1999 19:27:05 +0000 Subject: [PATCH] - Fix for pasting multiline text into the konsole - Removing unnecessary QT_VERSION #ifdefs svn path=/trunk/kdebase/konsole/; revision=31369 --- src/TEWidget.C | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/TEWidget.C b/src/TEWidget.C index 24c78c54..bb052163 100644 --- a/src/TEWidget.C +++ b/src/TEWidget.C @@ -712,8 +712,9 @@ void TEWidget::emitSelection() { QString text = QApplication::clipboard()->text(); if ( ! text.isNull() ) { - QKeyEvent e(QEvent::KeyPress, 0,0,0, text); - emit keyPressedSignal(&e); // expose as a big fat keypress event + text.replace(QRegExp("\n"), "\r"); + QKeyEvent e(QEvent::KeyPress, 0,0,0, text); + emit keyPressedSignal(&e); // expose as a big fat keypress event } } @@ -861,14 +862,8 @@ void TEWidget::clearImage() void TEWidget::calcGeometry() { -#if QT_VERSION == 210 -#warning Using Qt2.1.0 CVS scrollbar extents (mosfet). - scrollbar->resize(QApplication::style().scrollBarExtent().width(), - contentsRect().height()); -#else - scrollbar->resize(16, contentsRect().height()); -#endif - + scrollbar->resize(QApplication::style().scrollBarExtent().width(), + contentsRect().height()); switch(scrollLoc) { case SCRNONE :