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 --- .../javalib/examples/drawlines/ConnectWidget.java | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'qtjava/javalib/examples/drawlines') diff --git a/qtjava/javalib/examples/drawlines/ConnectWidget.java b/qtjava/javalib/examples/drawlines/ConnectWidget.java index c51f2703..0292b9a2 100644 --- a/qtjava/javalib/examples/drawlines/ConnectWidget.java +++ b/qtjava/javalib/examples/drawlines/ConnectWidget.java @@ -13,13 +13,13 @@ import java.util.Random; // // ConnectWidget - draws connected lines // -class ConnectWidget extends QWidget +class ConnectWidget extends TQWidget { static final int MAXPOINTS = 2000; // maximum number of points static final int MAXCOLORS = 40; -private QPoint[] points; // point array -private QColor[] colors; // color array +private TQPoint[] points; // point array +private TQColor[] colors; // color array private int count; // count = number of points private boolean down; // true if mouse down private Random generator = new Random(System.currentTimeMillis()); @@ -32,16 +32,16 @@ public ConnectWidget( ) this(null, null); } -public ConnectWidget( QWidget parent, String name ) +public ConnectWidget( TQWidget parent, String name ) { super( parent, name, WStaticContents ); setBackgroundColor( white() ); // white background count = 0; down = false; - points = new QPoint[MAXPOINTS]; - colors = new QColor[MAXCOLORS]; + points = new TQPoint[MAXPOINTS]; + colors = new TQColor[MAXCOLORS]; for ( int i=0; i