[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Thu May 6 22:28:00 CEST 2004


On Thursday 06 May 2004 12:27, Andrew Walker wrote:
> Cancel the drag operation if the object(s) being dragged are dragged back
> into the window they originated from.
> +      QKeyEvent keyEvent( QEvent::KeyPress, Qt::Key_Escape, 0, 0 );
> +      QApplication::sendEvent( this, &keyEvent );

  Nice hack! :)  I had guessed that this wouldn't work, but it certainly does 
work nicely.  Qt really needs a better solution though.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list