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 :