fixed location of dragging icon in outline mode

svn path=/trunk/KDE/kdebase/workspace/; revision=1060481
This commit is contained in:
Hugo Pereira Da Costa 2009-12-09 04:17:09 +00:00
parent 6d0e02633a
commit 26f153dd97

View file

@ -1487,7 +1487,14 @@ namespace Oxygen
// note: the pixmap is moved just above the pointer on purpose
// because overlapping pixmap and pointer slows down the pixmap alot.
drag->setHotSpot( QPoint( event->pos().x() - geometry.left(), -1 ) );
QPoint hotSpot( QPoint( event->pos().x() - geometry.left(), -1 ) );
// make sure the horizontal hotspot position is not too far away (more than 1px)
// from the pixmap
if( hotSpot.x() < -1 ) hotSpot.setX(-1);
if( hotSpot.x() > geometry.width() ) hotSpot.setX( geometry.width() );
drag->setHotSpot( hotSpot );
dragStartTimer_.start( 50, this );
drag->exec( Qt::MoveAction );