From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- qtjava/javalib/examples/dragdrop/SecretSource.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qtjava/javalib/examples/dragdrop/SecretSource.java') 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++; } -- cgit v1.2.3