diff options
Diffstat (limited to 'qtjava/javalib/examples/dragdrop/SecretSource.java')
-rw-r--r-- | qtjava/javalib/examples/dragdrop/SecretSource.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qtjava/javalib/examples/dragdrop/SecretSource.java b/qtjava/javalib/examples/dragdrop/SecretSource.java index 00824dee..9d26f73e 100644 --- a/qtjava/javalib/examples/dragdrop/SecretSource.java +++ b/qtjava/javalib/examples/dragdrop/SecretSource.java @@ -13,16 +13,16 @@ ****************************************************************************/ import org.kde.qt.*; -class SecretSource extends QLabel +class SecretSource extends TQLabel { private int mySecret; -SecretSource( byte secret, QWidget parent ) +SecretSource( byte secret, TQWidget parent ) { this(secret, parent, null); } -SecretSource( byte secret, QWidget parent, String name ) +SecretSource( byte secret, TQWidget parent, String name ) { super( "Secret", parent, name ); setBackgroundColor( blue().light() ); @@ -58,10 +58,10 @@ static String picture_xpm[] = { " ..... ", " "}; -protected void mousePressEvent( QMouseEvent e ) +protected void mousePressEvent( TQMouseEvent e ) { SecretDrag sd = new SecretDrag( (byte) mySecret, this ); - sd.setPixmap(new QPixmap(picture_xpm),new QPoint(8,8)); + sd.setPixmap(new TQPixmap(picture_xpm),new TQPoint(8,8)); sd.dragCopy(); mySecret++; } |