diff options
Diffstat (limited to 'qtjava/javalib/examples/rot13/Rot13.java')
-rw-r--r-- | qtjava/javalib/examples/rot13/Rot13.java | 14 |
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 ); |