From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/rot-example.html | 62 +++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'doc/html/rot-example.html') diff --git a/doc/html/rot-example.html b/doc/html/rot-example.html index 2f66bf1ed..ced6f0d51 100644 --- a/doc/html/rot-example.html +++ b/doc/html/rot-example.html @@ -55,23 +55,23 @@ the rot13 algorithm. #ifndef ROT13_H #define ROT13_H -#include <qwidget.h> +#include <ntqwidget.h> class TQMultiLineEdit; -class Rot13: public TQWidget { +class Rot13: public TQWidget { Q_OBJECT public: Rot13(); - TQString rot13( const TQString & ) const; + TQString rot13( const TQString & ) const; private slots: void changeLeft(); void changeRight(); private: - TQMultiLineEdit * left, * right; + TQMultiLineEdit * left, * right; }; #endif @@ -91,51 +91,51 @@ private: #include "rot13.h" -#include <qmultilineedit.h> -#include <qpushbutton.h> -#include <qapplication.h> -#include <qlayout.h> +#include <ntqmultilineedit.h> +#include <ntqpushbutton.h> +#include <ntqapplication.h> +#include <ntqlayout.h> Rot13::Rot13() { - left = new TQMultiLineEdit( this, "left" ); - right = new TQMultiLineEdit( this, "right" ); - connect( left, SIGNAL(textChanged()), this, SLOT(changeRight()) ); - connect( right, SIGNAL(textChanged()), this, SLOT(changeLeft()) ); + left = new TQMultiLineEdit( this, "left" ); + right = new TQMultiLineEdit( this, "right" ); + connect( left, SIGNAL(textChanged()), this, SLOT(changeRight()) ); + connect( right, SIGNAL(textChanged()), this, SLOT(changeLeft()) ); - TQPushButton * quit = new TQPushButton( "&Quit", this ); - quit->setFocusPolicy( NoFocus ); - connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); + TQPushButton * quit = new TQPushButton( "&Quit", this ); + quit->setFocusPolicy( NoFocus ); + connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); TQGridLayout * l = new TQGridLayout( this, 2, 2, 5 ); l->addWidget( left, 0, 0 ); l->addWidget( right, 0, 1 ); l->addWidget( quit, 1, 1, AlignRight ); - left->setFocus(); + left->setFocus(); } void Rot13::changeLeft() { - left->blockSignals( TRUE ); - left->setText( rot13( right->text() ) ); - left->blockSignals( FALSE ); + left->blockSignals( TRUE ); + left->setText( rot13( right->text() ) ); + left->blockSignals( FALSE ); } void Rot13::changeRight() { - right->blockSignals( TRUE ); - right->setText( rot13( left->text() ) ); - right->blockSignals( FALSE ); + right->blockSignals( TRUE ); + right->setText( rot13( left->text() ) ); + right->blockSignals( FALSE ); } -TQString Rot13::rot13( const TQString & input ) const +TQString Rot13::rot13( const TQString & input ) const { - TQString r = input; - int i = r.length(); + TQString r = input; + int i = r.length(); while( i-- ) { if ( r[i] >= TQChar('A') && r[i] <= TQChar('M') || r[i] >= TQChar('a') && r[i] <= TQChar('m') ) @@ -150,13 +150,13 @@ TQString Rot13::rot13( const TQString< int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); Rot13 r; - r.resize( 400, 400 ); - a.setMainWidget( &r ); - r.setCaption("TQt Example - ROT13"); - r.show(); - return a.exec(); + r.resize( 400, 400 ); + a.setMainWidget( &r ); + r.setCaption("TQt Example - ROT13"); + r.show(); + return a.exec(); } -- cgit v1.2.1