diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/rot-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/rot-example.html')
-rw-r--r-- | doc/html/rot-example.html | 62 |
1 files changed, 31 insertions, 31 deletions
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 <<a href="qwidget-h.html">qwidget.h</a>> +#include <<a href="qwidget-h.html">ntqwidget.h</a>> class TQMultiLineEdit; -class Rot13: public <a href="qwidget.html">TQWidget</a> { +class Rot13: public <a href="ntqwidget.html">TQWidget</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: Rot13(); - <a href="qstring.html">TQString</a> rot13( const <a href="qstring.html">TQString</a> & ) const; + <a href="ntqstring.html">TQString</a> rot13( const <a href="ntqstring.html">TQString</a> & ) const; private slots: void changeLeft(); void changeRight(); private: - <a href="qmultilineedit.html">TQMultiLineEdit</a> * left, * right; + <a href="ntqmultilineedit.html">TQMultiLineEdit</a> * left, * right; }; #endif @@ -91,51 +91,51 @@ private: #include "rot13.h" -#include <<a href="qmultilineedit-h.html">qmultilineedit.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qlayout-h.html">qlayout.h</a>> +#include <<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qlayout-h.html">ntqlayout.h</a>> <a name="f432"></a>Rot13::Rot13() { - left = new <a href="qmultilineedit.html">TQMultiLineEdit</a>( this, "left" ); - right = new <a href="qmultilineedit.html">TQMultiLineEdit</a>( this, "right" ); -<a name="x1375"></a> <a href="qobject.html#connect">connect</a>( left, SIGNAL(<a href="qtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeRight()) ); - <a href="qobject.html#connect">connect</a>( right, SIGNAL(<a href="qtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeLeft()) ); + left = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "left" ); + right = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "right" ); +<a name="x1375"></a> <a href="ntqobject.html#connect">connect</a>( left, SIGNAL(<a href="ntqtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeRight()) ); + <a href="ntqobject.html#connect">connect</a>( right, SIGNAL(<a href="ntqtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeLeft()) ); - <a href="qpushbutton.html">TQPushButton</a> * quit = new <a href="qpushbutton.html">TQPushButton</a>( "&Quit", this ); -<a name="x1379"></a> quit-><a href="qwidget.html#setFocusPolicy">setFocusPolicy</a>( NoFocus ); - <a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) ); + <a href="ntqpushbutton.html">TQPushButton</a> * quit = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Quit", this ); +<a name="x1379"></a> quit-><a href="ntqwidget.html#setFocusPolicy">setFocusPolicy</a>( NoFocus ); + <a href="ntqobject.html#connect">connect</a>( quit, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); <a href="qgridlayout.html">TQGridLayout</a> * l = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 5 ); <a name="x1370"></a> l-><a href="qgridlayout.html#addWidget">addWidget</a>( left, 0, 0 ); l-><a href="qgridlayout.html#addWidget">addWidget</a>( right, 0, 1 ); l-><a href="qgridlayout.html#addWidget">addWidget</a>( quit, 1, 1, AlignRight ); -<a name="x1378"></a> left-><a href="qwidget.html#setFocus">setFocus</a>(); +<a name="x1378"></a> left-><a href="ntqwidget.html#setFocus">setFocus</a>(); } void <a name="f433"></a>Rot13::changeLeft() { -<a name="x1371"></a> left-><a href="qobject.html#blockSignals">blockSignals</a>( TRUE ); -<a name="x1374"></a><a name="x1373"></a> left-><a href="qtextedit.html#setText">setText</a>( rot13( right-><a href="qtextedit.html#text">text</a>() ) ); - left-><a href="qobject.html#blockSignals">blockSignals</a>( FALSE ); +<a name="x1371"></a> left-><a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE ); +<a name="x1374"></a><a name="x1373"></a> left-><a href="ntqtextedit.html#setText">setText</a>( rot13( right-><a href="ntqtextedit.html#text">text</a>() ) ); + left-><a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE ); } void <a name="f434"></a>Rot13::changeRight() { - right-><a href="qobject.html#blockSignals">blockSignals</a>( TRUE ); - right-><a href="qtextedit.html#setText">setText</a>( rot13( left-><a href="qtextedit.html#text">text</a>() ) ); - right-><a href="qobject.html#blockSignals">blockSignals</a>( FALSE ); + right-><a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE ); + right-><a href="ntqtextedit.html#setText">setText</a>( rot13( left-><a href="ntqtextedit.html#text">text</a>() ) ); + right-><a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE ); } -TQString <a name="f435"></a>Rot13::rot13( const <a href="qstring.html">TQString</a> & input ) const +TQString <a name="f435"></a>Rot13::rot13( const <a href="ntqstring.html">TQString</a> & input ) const { - <a href="qstring.html">TQString</a> r = input; -<a name="x1372"></a> int i = r.<a href="qstring.html#length">length</a>(); + <a href="ntqstring.html">TQString</a> r = input; +<a name="x1372"></a> int i = r.<a href="ntqstring.html#length">length</a>(); while( i-- ) { if ( r[i] >= TQChar('A') && r[i] <= TQChar('M') || r[i] >= TQChar('a') && r[i] <= TQChar('m') ) @@ -150,13 +150,13 @@ TQString <a name="f435"></a>Rot13::rot13( const <a href="qstring.html">TQString< int main( int argc, char ** argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); Rot13 r; - r.<a href="qwidget.html#resize">resize</a>( 400, 400 ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &r ); - r.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - ROT13"); - r.<a href="qwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + r.<a href="ntqwidget.html#resize">resize</a>( 400, 400 ); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &r ); + r.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - ROT13"); + r.<a href="ntqwidget.html#show">show</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |