summaryrefslogtreecommitdiffstats
path: root/doc/html/richtext-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/richtext-example.html')
-rw-r--r--doc/html/richtext-example.html92
1 files changed, 46 insertions, 46 deletions
diff --git a/doc/html/richtext-example.html b/doc/html/richtext-example.html
index 8276b17f4..2540895f9 100644
--- a/doc/html/richtext-example.html
+++ b/doc/html/richtext-example.html
@@ -51,21 +51,21 @@ Unix "fortune" are displayed nicely formatted.
#ifndef RICHTEXT_H
#define RICHTEXT_H
-#include &lt;<a href="qvbox-h.html">qvbox.h</a>&gt;
+#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
class TQTextView;
class TQPushButton;
-class MyRichText : public <a href="qvbox.html">TQVBox</a>
+class MyRichText : public <a href="ntqvbox.html">TQVBox</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- MyRichText( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
+ MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
protected:
- <a href="qtextview.html">TQTextView</a> *view;
- <a href="qpushbutton.html">TQPushButton</a> *bClose, *bNext, *bPrev;
+ <a href="ntqtextview.html">TQTextView</a> *view;
+ <a href="ntqpushbutton.html">TQPushButton</a> *bClose, *bNext, *bPrev;
int num;
protected slots:
@@ -91,12 +91,12 @@ protected slots:
#include "richtext.h"
-#include &lt;<a href="qhbox-h.html">qhbox.h</a>&gt;
-#include &lt;<a href="qhbox-h.html">qhbox.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">qpushbutton.h</a>&gt;
-#include &lt;<a href="qtextview-h.html">qtextview.h</a>&gt;
-#include &lt;<a href="qbrush-h.html">qbrush.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qhbox-h.html">ntqhbox.h</a>&gt;
+#include &lt;<a href="qhbox-h.html">ntqhbox.h</a>&gt;
+#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
+#include &lt;<a href="qtextview-h.html">ntqtextview.h</a>&gt;
+#include &lt;<a href="qbrush-h.html">ntqbrush.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
static const char* sayings[] = {
"&lt;b&gt;Saying 1:&lt;/b&gt;&lt;br&gt;"
@@ -156,35 +156,35 @@ static const char* sayings[] = {
};
-<a name="f255"></a>MyRichText::MyRichText( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qvbox.html">TQVBox</a>( parent, name )
+<a name="f255"></a>MyRichText::MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqvbox.html">TQVBox</a>( parent, name )
{
- <a href="qframe.html#setMargin">setMargin</a>( 5 );
-
- view = new <a href="qtextview.html">TQTextView</a>( this );
-<a name="x465"></a> view-&gt;<a href="qtextedit.html#setText">setText</a>( "This is a &lt;b&gt;Test&lt;/b&gt; with &lt;i&gt;italic&lt;/i&gt; &lt;u&gt;stuff&lt;/u&gt;" );
- <a href="qbrush.html">TQBrush</a> paper;
-<a name="x461"></a> paper.<a href="qbrush.html#setPixmap">setPixmap</a>( TQPixmap( "../richtext/marble.png" ) );
-<a name="x460"></a> if ( paper.<a href="qbrush.html#pixmap">pixmap</a>() != 0 )
-<a name="x464"></a> view-&gt;<a href="qtextedit.html#setPaper">setPaper</a>( paper );
+ <a href="ntqframe.html#setMargin">setMargin</a>( 5 );
+
+ view = new <a href="ntqtextview.html">TQTextView</a>( this );
+<a name="x465"></a> view-&gt;<a href="ntqtextedit.html#setText">setText</a>( "This is a &lt;b&gt;Test&lt;/b&gt; with &lt;i&gt;italic&lt;/i&gt; &lt;u&gt;stuff&lt;/u&gt;" );
+ <a href="ntqbrush.html">TQBrush</a> paper;
+<a name="x461"></a> paper.<a href="ntqbrush.html#setPixmap">setPixmap</a>( TQPixmap( "../richtext/marble.png" ) );
+<a name="x460"></a> if ( paper.<a href="ntqbrush.html#pixmap">pixmap</a>() != 0 )
+<a name="x464"></a> view-&gt;<a href="ntqtextedit.html#setPaper">setPaper</a>( paper );
else
- view-&gt;<a href="qtextedit.html#setPaper">setPaper</a>( white );
+ view-&gt;<a href="ntqtextedit.html#setPaper">setPaper</a>( white );
- view-&gt;<a href="qtextedit.html#setText">setText</a>( sayings[0] );
-<a name="x467"></a> view-&gt;<a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 450, 250 );
+ view-&gt;<a href="ntqtextedit.html#setText">setText</a>( sayings[0] );
+<a name="x467"></a> view-&gt;<a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 450, 250 );
- <a href="qhbox.html">TQHBox</a> *buttons = new <a href="qhbox.html">TQHBox</a>( this );
- buttons-&gt;<a href="qframe.html#setMargin">setMargin</a>( 5 );
+ <a href="ntqhbox.html">TQHBox</a> *buttons = new <a href="ntqhbox.html">TQHBox</a>( this );
+ buttons-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 5 );
- bClose = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Close", buttons );
- bPrev = new <a href="qpushbutton.html">TQPushButton</a>( "&lt;&lt; &amp;Prev", buttons );
- bNext = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Next &gt;&gt;", buttons );
+ bClose = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Close", buttons );
+ bPrev = new <a href="ntqpushbutton.html">TQPushButton</a>( "&lt;&lt; &amp;Prev", buttons );
+ bNext = new <a href="ntqpushbutton.html">TQPushButton</a>( "&amp;Next &gt;&gt;", buttons );
-<a name="x466"></a> bPrev-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+<a name="x466"></a> bPrev-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
-<a name="x462"></a> <a href="qobject.html#connect">connect</a>( bClose, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
- <a href="qobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) );
- <a href="qobject.html#connect">connect</a>( bNext, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) );
+<a name="x462"></a> <a href="ntqobject.html#connect">connect</a>( bClose, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
+ <a href="ntqobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) );
+ <a href="ntqobject.html#connect">connect</a>( bNext, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) );
num = 0;
}
@@ -196,12 +196,12 @@ void <a name="f256"></a>MyRichText::prev()
num--;
- view-&gt;<a href="qtextedit.html#setText">setText</a>( sayings[num] );
+ view-&gt;<a href="ntqtextedit.html#setText">setText</a>( sayings[num] );
if ( num == 0 )
- bPrev-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ bPrev-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
- bNext-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
+ bNext-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
}
void <a name="f257"></a>MyRichText::next()
@@ -209,12 +209,12 @@ void <a name="f257"></a>MyRichText::next()
if ( !sayings[++num] )
return;
- view-&gt;<a href="qtextedit.html#setText">setText</a>( sayings[num] );
+ view-&gt;<a href="ntqtextedit.html#setText">setText</a>( sayings[num] );
if ( !sayings[num + 1] )
- bNext-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
+ bNext-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
- bPrev-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( TRUE );
+ bPrev-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( TRUE );
}
@@ -236,19 +236,19 @@ void <a name="f257"></a>MyRichText::next()
*****************************************************************************/
#include "richtext.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
MyRichText richtext;
- richtext.<a href="qwidget.html#resize">resize</a>( 450, 350 );
- richtext.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Richtext" );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;richtext );
- richtext.<a href="qwidget.html#show">show</a>();
+ richtext.<a href="ntqwidget.html#resize">resize</a>( 450, 350 );
+ richtext.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Richtext" );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;richtext );
+ richtext.<a href="ntqwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>