diff options
Diffstat (limited to 'qtjava/javalib/examples/dragdrop/SecretDrag.java')
-rw-r--r-- | qtjava/javalib/examples/dragdrop/SecretDrag.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qtjava/javalib/examples/dragdrop/SecretDrag.java b/qtjava/javalib/examples/dragdrop/SecretDrag.java index fd12aed3..5220fd9f 100644 --- a/qtjava/javalib/examples/dragdrop/SecretDrag.java +++ b/qtjava/javalib/examples/dragdrop/SecretDrag.java @@ -14,10 +14,10 @@ import org.kde.qt.*; -class SecretDrag extends QStoredDrag { +class SecretDrag extends TQStoredDrag { //create the object withe the secret byte -public SecretDrag( byte secret, QWidget parent, String name ) +public SecretDrag( byte secret, TQWidget parent, String name ) { super( "secret/magic", parent, name ); byte[] data = { 0 }; @@ -25,19 +25,19 @@ public SecretDrag( byte secret, QWidget parent, String name ) setEncodedData( data ); } -public SecretDrag( byte secret, QWidget parent ) +public SecretDrag( byte secret, TQWidget parent ) { this(secret, parent, null); } -public static boolean canDecode( QDragMoveEvent e ) +public static boolean canDecode( TQDragMoveEvent e ) { return e.provides( "secret/magic" ); } //decode it into a string -public static boolean decode( QDropEvent e, StringBuffer str ) +public static boolean decode( TQDropEvent e, StringBuffer str ) { byte[] payload = e.data( "secret/magic" ); if ( payload.length > 0 ) { |