summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/showimg/Main.java
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/examples/showimg/Main.java
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/showimg/Main.java')
-rw-r--r--qtjava/javalib/examples/showimg/Main.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/qtjava/javalib/examples/showimg/Main.java b/qtjava/javalib/examples/showimg/Main.java
index a72a39c9..97cc30a6 100644
--- a/qtjava/javalib/examples/showimg/Main.java
+++ b/qtjava/javalib/examples/showimg/Main.java
@@ -15,20 +15,20 @@ public class Main {
public static void main(String[] args)
{
if ( args.length > 0 && args[0].equals("-m") ) {
- QApplication.setColorSpec( QApplication.ManyColor );
+ TQApplication.setColorSpec( TQApplication.ManyColor );
}
else if ( args.length > 1 && args[1].equals("-n") ) {
- QApplication.setColorSpec( QApplication.NormalColor );
+ TQApplication.setColorSpec( TQApplication.NormalColor );
}
else {
- QApplication.setColorSpec( QApplication.CustomColor );
+ TQApplication.setColorSpec( TQApplication.CustomColor );
}
- QApplication.setFont( new QFont("Helvetica", 12) );
- QApplication a = new QApplication( args );
+ TQApplication.setFont( new TQFont("Helvetica", 12) );
+ TQApplication a = new TQApplication( args );
ImageIconProvider iip = new ImageIconProvider();
- QFileDialog.setIconProvider( iip );
+ TQFileDialog.setIconProvider( iip );
if ( args.length == 0 ) {
// Create a window which looks after its own existence.
@@ -47,7 +47,7 @@ public static void main(String[] args)
}
}
- QObject.connect(Qt.qApp(), Qt.SIGNAL("lastWindowClosed()"), Qt.qApp(), Qt.SLOT("quit()"));
+ TQObject.connect(Qt.qApp(), Qt.SIGNAL("lastWindowClosed()"), Qt.qApp(), Qt.SLOT("quit()"));
a.exec();
return;