2010-05-02 16:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/hbqt_hbqplaintextedit.cpp
    + Implemented: horizontally scrolled text to be selected via mouse.
This commit is contained in:
Pritpal Bedi
2010-05-02 23:40:39 +00:00
parent 3b6b91f441
commit 105410c2a0
2 changed files with 6 additions and 2 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-05-02 16:29 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
+ Implemented: horizontally scrolled text to be selected via mouse.
2010-05-02 16:12 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
+ Implemented: horizontally scrolled text to be copied.

View File

@@ -258,8 +258,8 @@ void HBQPlainTextEdit::mouseMoveEvent( QMouseEvent *event )
else
{
QTextCursor c( cursorForPosition( QPoint( 1,1 ) ) );
rowEnds = c.blockNumber() + ( event->y() / fontMetrics().height() );
columnEnds = event->x() / fontMetrics().averageCharWidth();
rowEnds = c.blockNumber() + ( event->y() / fontMetrics().height() );
columnEnds = c.columnNumber() + ( event->x() / fontMetrics().averageCharWidth() );
}
update();
event->accept();