summaryrefslogtreecommitdiffstats
path: root/doc/html/simple-application-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-24 19:37:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-24 19:37:05 +0900
commit0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc (patch)
treebe5eda50c23980aa4b44de1e8b2e209c6c02d2d1 /doc/html/simple-application-example.html
parent1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (diff)
downloadtqt3-0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc.tar.gz
tqt3-0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc.zip
Rename text class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/simple-application-example.html')
-rw-r--r--doc/html/simple-application-example.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html
index e8c2e5978..271a62364 100644
--- a/doc/html/simple-application-example.html
+++ b/doc/html/simple-application-example.html
@@ -120,8 +120,8 @@ private:
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqpaintdevicemetrics-h.html">tqpaintdevicemetrics.h</a>&gt;
-#include &lt;<a href="qwhatsthis-h.html">ntqwhatsthis.h</a>&gt;
-#include &lt;<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>&gt;
+#include &lt;<a href="tqwhatsthis-h.html">tqwhatsthis.h</a>&gt;
+#include &lt;<a href="tqsimplerichtext-h.html">tqsimplerichtext.h</a>&gt;
#include "filesave.xpm"
#include "fileopen.xpm"
@@ -159,7 +159,7 @@ private:
"You can also select the &lt;b&gt;Open&lt;/b&gt; command "
"from the &lt;b&gt;File&lt;/b&gt; menu.&lt;/p&gt;";
-<a name="x1591"></a> TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( fileOpen, fileOpenText );
+<a name="x1591"></a> TQWhatsThis::<a href="tqwhatsthis.html#add">add</a>( fileOpen, fileOpenText );
<a name="x1558"></a> TQMimeSourceFactory::<a href="tqmimesourcefactory.html#defaultFactory">defaultFactory</a>()-&gt;setPixmap( "document-open", openIcon );
@@ -168,14 +168,14 @@ private:
"You can also select the &lt;b&gt;Save&lt;/b&gt; command "
"from the &lt;b&gt;File&lt;/b&gt; menu.&lt;/p&gt;";
- TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( fileSave, fileSaveText );
+ TQWhatsThis::<a href="tqwhatsthis.html#add">add</a>( fileSave, fileSaveText );
const char * filePrintText = "Click this button to print the file you "
"are editing.\n"
"You can also select the Print command "
"from the File menu.";
- TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( filePrint, filePrintText );
+ TQWhatsThis::<a href="tqwhatsthis.html#add">add</a>( filePrint, filePrintText );
<a href="tqpopupmenu.html">TQPopupMenu</a> * file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
@@ -321,21 +321,21 @@ void <a name="f465"></a>ApplicationWindow::print()
<a name="x1560"></a> int dpiy = metrics.<a href="tqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>();
int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins
<a name="x1561"></a><a name="x1559"></a> <a href="tqrect.html">TQRect</a> view( margin, margin, metrics.<a href="tqpaintdevicemetrics.html#width">width</a>() - 2*margin, metrics.<a href="tqpaintdevicemetrics.html#height">height</a>() - 2*margin );
-<a name="x1581"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( TQStyleSheet::<a href="tqstylesheet.html#convertFromPlainText">convertFromPlainText</a>(e-&gt;<a href="tqtextedit.html#text">text</a>()),
+<a name="x1581"></a> <a href="tqsimplerichtext.html">TQSimpleRichText</a> richText( TQStyleSheet::<a href="tqstylesheet.html#convertFromPlainText">convertFromPlainText</a>(e-&gt;<a href="tqtextedit.html#text">text</a>()),
TQFont(),
<a name="x1582"></a> e-&gt;<a href="tqtextedit.html#context">context</a>(),
<a name="x1587"></a> e-&gt;<a href="tqtextedit.html#styleSheet">styleSheet</a>(),
<a name="x1584"></a> e-&gt;<a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
view.<a href="tqrect.html#height">height</a>() );
-<a name="x1578"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="tqrect.html#width">width</a>() );
+<a name="x1578"></a> richText.<a href="tqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="tqrect.html#width">width</a>() );
int page = 1;
do {
-<a name="x1576"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &amp;p, margin, margin, view, colorGroup() );
+<a name="x1576"></a> richText.<a href="tqsimplerichtext.html#draw">draw</a>( &amp;p, margin, margin, view, colorGroup() );
<a name="x1572"></a> view.<a href="tqrect.html#moveBy">moveBy</a>( 0, view.<a href="tqrect.html#height">height</a>() );
<a name="x1566"></a> p.<a href="tqpainter.html#translate">translate</a>( 0 , -view.<a href="tqrect.html#height">height</a>() );
<a name="x1580"></a><a name="x1573"></a><a name="x1565"></a> p.<a href="tqpainter.html#drawText">drawText</a>( view.<a href="tqrect.html#right">right</a>() - p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="tqstring.html#number">number</a>( page ) ),
<a name="x1570"></a> view.<a href="tqrect.html#bottom">bottom</a>() + p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number( page ) );
-<a name="x1577"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
+<a name="x1577"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin &gt;= richText.<a href="tqsimplerichtext.html#height">height</a>() )
break;
<a name="x1567"></a> printer-&gt;<a href="tqprinter.html#newPage">newPage</a>();
page++;