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:
@@ -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
|
||||
|
||||
@@ -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 ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user