summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/hello/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/hello/Main.java')
-rw-r--r--qtjava/javalib/examples/hello/Main.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qtjava/javalib/examples/hello/Main.java b/qtjava/javalib/examples/hello/Main.java
index 1313b2cf..745b97f9 100644
--- a/qtjava/javalib/examples/hello/Main.java
+++ b/qtjava/javalib/examples/hello/Main.java
@@ -18,7 +18,7 @@ public class Main {
public static void main( String[] args )
{
- QApplication a = new QApplication(args);
+ TQApplication a = new TQApplication(args);
String s = "";
for ( int i=1; i<args.length; i++ ) {
s += args[i];
@@ -29,8 +29,8 @@ public static void main( String[] args )
s = "Hello, World";
Hello h = new Hello( s );
h.setCaption( "Qt says hello" );
- QObject.connect( h, Qt.SIGNAL("clicked()"), a, Qt.SLOT("quit()") );
- h.setFont( new QFont("times",32,QFont.Bold) ); // default font
+ TQObject.connect( h, Qt.SIGNAL("clicked()"), a, Qt.SLOT("quit()") );
+ h.setFont( new TQFont("times",32,TQFont.Bold) ); // default font
h.setBackgroundColor( Qt.white() ); // default bg color
a.setMainWidget( h );
h.show();