From bbd3875affd611b804ca06cee198263b5f48803a Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Wed, 15 Feb 2012 01:35:07 +0000 Subject: [PATCH] 2012-02-14 17:31 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp * Refined: dragging-text image made transparent with respect to editors background color, current-line highlight color. The experience now is smoother than before. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 9468881717..7ebb4afd76 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2012-02-14 17:31 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp + * Refined: dragging-text image made transparent with respect + to editors background color, current-line highlight color. + The experience now is smoother than before. + 2012-02-14 16:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp * contrib/hbqt/qtgui/hbqt_hbqplaintextedit.h diff --git a/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp index cf701f48a6..6d8825a15d 100644 --- a/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp @@ -992,7 +992,8 @@ void HBQPlainTextEdit::mousePressEvent( QMouseEvent *event ) QPixmap pmap = QPixmap::grabWidget( this->viewport(), hbGetSelectionRect() ); pmap.setMask( pmap.createMaskFromColor( m_selectionColor, Qt::MaskInColor ) ); - + pmap.setMask( pmap.createMaskFromColor( palette().color( QPalette::Base ), Qt::MaskInColor ) ); + pmap.setMask( pmap.createMaskFromColor( m_currentLineColor, Qt::MaskInColor ) ); qDrag->setPixmap( pmap ); qDrag->setHotSpot( QPoint( 5,5 ) );