diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f9fe7522b4..5cba27b73c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,7 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ -2010-05-02 03:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) +2010-05-02 16:12 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/hbqt/hbqt_hbqplaintextedit.cpp + + Implemented: horizontally scrolled text to be copied. + So now it is identical to xMate in all respects plus + selection through mouse as properitory to hbIDE. + +2010-05-02 15:00 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbqt/hbqt_hbqplaintextedit.cpp * contrib/hbqt/hbqt_hbqplaintextedit.h diff --git a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp index 145e563592..6262f886f0 100644 --- a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp @@ -782,13 +782,14 @@ void HBQPlainTextEdit::hbPaintColumnSelection( QPaintEvent * event ) int t = cursorForPosition( QPoint( 1, 1 ) ).blockNumber(); if( rowEnds < rowBegins ? rowBegins >= t : rowEnds >= t ) { + int c = cursorForPosition( QPoint( 1, 1 ) ).columnNumber(); QRect cr = contentsRect(); int y = ( ( rowBegins <= t ) ? 0 : ( ( rowBegins - t ) * fontMetrics().height() ) ); int fontWidth = fontMetrics().averageCharWidth(); - int x = ( columnBegins ) * fontWidth + cr.left(); + int x = ( ( columnBegins - c ) * fontWidth ) + cr.left(); int w = ( columnEnds - columnBegins ) * fontWidth; QRect r( x, y, ( w == 0 ? 1 : w ), ( ( rowEnds - t + 1 ) * fontMetrics().height() ) - y );