2010-06-30 10:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/hbqt_hbqplaintextedit.cpp
    ! Fixed: right-button-press was clearing selection.
This commit is contained in:
Pritpal Bedi
2010-06-30 17:10:36 +00:00
parent aad34fe7e2
commit 468135d2a2
2 changed files with 15 additions and 8 deletions

View File

@@ -16,6 +16,10 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-06-30 10:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
! Fixed: right-button-press was clearing selection.
2010-06-30 10:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* external/bzip2/Makefile
- Deleted now not needed old URL tag.

View File

@@ -732,15 +732,18 @@ void HBQPlainTextEdit::mousePressEvent( QMouseEvent *event )
}
else
{
setCursorWidth( 1 );
if( ! isSelectionPersistent )
if( event->buttons() & Qt::LeftButton )
{
selectionState = 0;
hbClearSelection();
}
else
{
selectionState = 1;
setCursorWidth( 1 );
if( ! isSelectionPersistent )
{
selectionState = 0;
hbClearSelection();
}
else
{
selectionState = 1;
}
}
QPlainTextEdit::mousePressEvent( event );
}