diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-20 20:15:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-21 23:04:19 +0900 |
commit | 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (patch) | |
tree | 5f1bb482f68ee0f95843fbf375cd2274acdabf25 /doc/html/helpviewer-example.html | |
parent | 14c414378d96f7463b989384f4a0e5dd76632b6d (diff) | |
download | tqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.tar.gz tqt3-1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3.zip |
Rename graphics class nt* related files to equivalent tq* (part 2)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r-- | doc/html/helpviewer-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index e57fc7eb1..17cf93ddf 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -117,7 +117,7 @@ private: #include "helpwindow.h" #include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> -#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="tqpixmap-h.html">tqpixmap.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> @@ -136,7 +136,7 @@ private: #include <<a href="tqfileinfo-h.html">tqfileinfo.h</a>> #include <<a href="tqfile-h.html">tqfile.h</a>> #include <<a href="tqdatastream-h.html">tqdatastream.h</a>> -#include <<a href="qprinter-h.html">ntqprinter.h</a>> +#include <<a href="tqprinter-h.html">tqprinter.h</a>> #include <<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqpaintdevicemetrics-h.html">tqpaintdevicemetrics.h</a>> @@ -341,33 +341,33 @@ void <a name="f357"></a>HelpWindow::newWindow() void <a name="f358"></a>HelpWindow::print() { #ifndef TQT_NO_PRINTER - <a href="ntqprinter.html">TQPrinter</a> printer( TQPrinter::HighResolution ); -<a name="x1006"></a> printer.<a href="ntqprinter.html#setFullPage">setFullPage</a>(TRUE); -<a name="x1007"></a> if ( printer.<a href="ntqprinter.html#setup">setup</a>( this ) ) { + <a href="tqprinter.html">TQPrinter</a> printer( TQPrinter::HighResolution ); +<a name="x1006"></a> printer.<a href="tqprinter.html#setFullPage">setFullPage</a>(TRUE); +<a name="x1007"></a> if ( printer.<a href="tqprinter.html#setup">setup</a>( this ) ) { <a href="tqpainter.html">TQPainter</a> p( &printer ); <a name="x1002"></a> if( !p.<a href="tqpainter.html#isActive">isActive</a>() ) // starting printing failed return; <a name="x999"></a> <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics(p.<a href="tqpainter.html#device">device</a>()); <a name="x997"></a> int dpiy = metrics.<a href="tqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins -<a name="x998"></a><a name="x996"></a> <a href="ntqrect.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="x998"></a><a name="x996"></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="x1032"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( browser-><a href="tqtextedit.html#text">text</a>(), TQFont(), <a name="x1028"></a> browser-><a href="tqtextedit.html#context">context</a>(), <a name="x1031"></a> browser-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), browser-><a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), - view.<a href="ntqrect.html#height">height</a>() ); -<a name="x1016"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &p, view.<a href="ntqrect.html#width">width</a>() ); + view.<a href="tqrect.html#height">height</a>() ); +<a name="x1016"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &p, view.<a href="tqrect.html#width">width</a>() ); int page = 1; do { <a name="x1014"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); -<a name="x1010"></a> view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() ); - p.<a href="tqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() ); -<a name="x1018"></a><a name="x1001"></a> p.<a href="tqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="tqstring.html#number">number</a>(page) ), -<a name="x1008"></a> view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) ); -<a name="x1015"></a> if ( view.<a href="ntqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) +<a name="x1010"></a> view.<a href="tqrect.html#moveBy">moveBy</a>( 0, view.<a href="tqrect.html#height">height</a>() ); + p.<a href="tqpainter.html#translate">translate</a>( 0 , -view.<a href="tqrect.html#height">height</a>() ); +<a name="x1018"></a><a name="x1001"></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="x1008"></a> view.<a href="tqrect.html#bottom">bottom</a>() + p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) ); +<a name="x1015"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) break; -<a name="x1005"></a> printer.<a href="ntqprinter.html#newPage">newPage</a>(); +<a name="x1005"></a> printer.<a href="tqprinter.html#newPage">newPage</a>(); page++; } while (TRUE); } |