summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/rot13
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/rot13
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/examples/rot13')
-rw-r--r--qtjava/javalib/examples/rot13/Rot13.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/qtjava/javalib/examples/rot13/Rot13.java b/qtjava/javalib/examples/rot13/Rot13.java
index 345f2a9d..67c2ee7f 100644
--- a/qtjava/javalib/examples/rot13/Rot13.java
+++ b/qtjava/javalib/examples/rot13/Rot13.java
@@ -15,23 +15,23 @@
import org.kde.qt.*;
-class Rot13 extends QWidget {
-private QMultiLineEdit left, right;
+class Rot13 extends TQWidget {
+private TQMultiLineEdit left, right;
Rot13()
{
- left = new QMultiLineEdit( this, "left" );
- right = new QMultiLineEdit( this, "right" );
+ left = new TQMultiLineEdit( this, "left" );
+ right = new TQMultiLineEdit( this, "right" );
connect( left, SIGNAL("textChanged()"), this, SLOT("changeRight()") );
connect( right, SIGNAL("textChanged()"), this, SLOT("changeLeft()") );
- QPushButton quit = new QPushButton( "&Quit", this );
+ TQPushButton quit = new TQPushButton( "&Quit", this );
quit.setFocusPolicy( NoFocus );
connect( quit, SIGNAL("clicked()"), qApp(), SLOT("quit()") );
- QGridLayout l = new QGridLayout( this, 2, 2, 5 );
+ TQGridLayout l = new TQGridLayout( this, 2, 2, 5 );
l.addWidget( left, 0, 0 );
l.addWidget( right, 0, 1 );
l.addWidget( quit, 1, 1, AlignRight );
@@ -74,7 +74,7 @@ String rot13( String input )
public static void main(String[] args)
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
Rot13 r = new Rot13();
r.resize( 400, 400 );
a.setMainWidget( r );