diff options
Diffstat (limited to 'qtjava/javalib/examples/helpviewer/Main.java')
-rw-r--r-- | qtjava/javalib/examples/helpviewer/Main.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qtjava/javalib/examples/helpviewer/Main.java b/qtjava/javalib/examples/helpviewer/Main.java index da01e3dc..7b6aa17c 100644 --- a/qtjava/javalib/examples/helpviewer/Main.java +++ b/qtjava/javalib/examples/helpviewer/Main.java @@ -14,8 +14,8 @@ public class Main { public static void main( String[] args ) { - QApplication.setColorSpec( QApplication.ManyColor ); - QApplication a = new QApplication(args); + TQApplication.setColorSpec( TQApplication.ManyColor ); + TQApplication a = new TQApplication(args); String home = null; if (args.length > 0) @@ -26,15 +26,15 @@ public static void main( String[] args ) HelpWindow help = new HelpWindow(home, ".", null, "help viewer"); help.setCaption("Qt Example - Helpviewer"); - if ( QApplication.desktop().width() > 400 - && QApplication.desktop().height() > 500 ) + if ( TQApplication.desktop().width() > 400 + && TQApplication.desktop().height() > 500 ) help.show(); else help.showMaximized(); - QObject.connect( a, Qt.SIGNAL("aboutToQuit()"), + TQObject.connect( a, Qt.SIGNAL("aboutToQuit()"), help, Qt.SLOT("cleanUp()") ); - QObject.connect( a, Qt.SIGNAL("lastWindowClosed()"), + TQObject.connect( a, Qt.SIGNAL("lastWindowClosed()"), a, Qt.SLOT("quit()") ); a.exec(); |