diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/hello/Main.java | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/hello/Main.java')
-rw-r--r-- | qtjava/javalib/examples/hello/Main.java | 6 |
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(); |