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.
This commit is contained in:
Pritpal Bedi
2012-02-15 01:35:07 +00:00
parent 1eb10b1559
commit bbd3875aff
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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 ) );