diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-24 19:37:05 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-24 19:37:05 +0900 |
commit | 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc (patch) | |
tree | be5eda50c23980aa4b44de1e8b2e209c6c02d2d1 /doc/html/simple-application-example.html | |
parent | 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (diff) | |
download | tqt3-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.html | 18 |
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 <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqpaintdevicemetrics-h.html">tqpaintdevicemetrics.h</a>> -#include <<a href="qwhatsthis-h.html">ntqwhatsthis.h</a>> -#include <<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>> +#include <<a href="tqwhatsthis-h.html">tqwhatsthis.h</a>> +#include <<a href="tqsimplerichtext-h.html">tqsimplerichtext.h</a>> #include "filesave.xpm" #include "fileopen.xpm" @@ -159,7 +159,7 @@ private: "You can also select the <b>Open</b> command " "from the <b>File</b> menu.</p>"; -<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>()->setPixmap( "document-open", openIcon ); @@ -168,14 +168,14 @@ private: "You can also select the <b>Save</b> command " "from the <b>File</b> menu.</p>"; - 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-><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-><a href="tqtextedit.html#text">text</a>()), TQFont(), <a name="x1582"></a> e-><a href="tqtextedit.html#context">context</a>(), <a name="x1587"></a> e-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), <a name="x1584"></a> e-><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>( &p, view.<a href="tqrect.html#width">width</a>() ); +<a name="x1578"></a> richText.<a href="tqsimplerichtext.html#setWidth">setWidth</a>( &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>( &p, margin, margin, view, colorGroup() ); +<a name="x1576"></a> richText.<a href="tqsimplerichtext.html#draw">draw</a>( &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 >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) +<a name="x1577"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin >= richText.<a href="tqsimplerichtext.html#height">height</a>() ) break; <a name="x1567"></a> printer-><a href="tqprinter.html#newPage">newPage</a>(); page++; |