summaryrefslogtreecommitdiffstats
path: root/doc/html/rot-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
committerTimothy Pearson <[email protected]>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/rot-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-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.html62
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 &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;
+#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
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> &amp; ) const;
+ <a href="ntqstring.html">TQString</a> rot13( const <a href="ntqstring.html">TQString</a> &amp; ) 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 &lt;<a href="qmultilineedit-h.html">qmultilineedit.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">qpushbutton.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;
+#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
+#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
<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>( "&amp;Quit", this );
-<a name="x1379"></a> quit-&gt;<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>( "&amp;Quit", this );
+<a name="x1379"></a> quit-&gt;<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-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( left, 0, 0 );
l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( right, 0, 1 );
l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 1, 1, AlignRight );
-<a name="x1378"></a> left-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+<a name="x1378"></a> left-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
void <a name="f433"></a>Rot13::changeLeft()
{
-<a name="x1371"></a> left-&gt;<a href="qobject.html#blockSignals">blockSignals</a>( TRUE );
-<a name="x1374"></a><a name="x1373"></a> left-&gt;<a href="qtextedit.html#setText">setText</a>( rot13( right-&gt;<a href="qtextedit.html#text">text</a>() ) );
- left-&gt;<a href="qobject.html#blockSignals">blockSignals</a>( FALSE );
+<a name="x1371"></a> left-&gt;<a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE );
+<a name="x1374"></a><a name="x1373"></a> left-&gt;<a href="ntqtextedit.html#setText">setText</a>( rot13( right-&gt;<a href="ntqtextedit.html#text">text</a>() ) );
+ left-&gt;<a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE );
}
void <a name="f434"></a>Rot13::changeRight()
{
- right-&gt;<a href="qobject.html#blockSignals">blockSignals</a>( TRUE );
- right-&gt;<a href="qtextedit.html#setText">setText</a>( rot13( left-&gt;<a href="qtextedit.html#text">text</a>() ) );
- right-&gt;<a href="qobject.html#blockSignals">blockSignals</a>( FALSE );
+ right-&gt;<a href="ntqobject.html#blockSignals">blockSignals</a>( TRUE );
+ right-&gt;<a href="ntqtextedit.html#setText">setText</a>( rot13( left-&gt;<a href="ntqtextedit.html#text">text</a>() ) );
+ right-&gt;<a href="ntqobject.html#blockSignals">blockSignals</a>( FALSE );
}
-TQString <a name="f435"></a>Rot13::rot13( const <a href="qstring.html">TQString</a> &amp; input ) const
+TQString <a name="f435"></a>Rot13::rot13( const <a href="ntqstring.html">TQString</a> &amp; 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] &gt;= TQChar('A') &amp;&amp; r[i] &lt;= TQChar('M') ||
r[i] &gt;= TQChar('a') &amp;&amp; r[i] &lt;= 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>( &amp;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>( &amp;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>