diff options
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r-- | doc/html/helpviewer-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index ba097e294..e57fc7eb1 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -138,8 +138,8 @@ private: #include <<a href="tqdatastream-h.html">tqdatastream.h</a>> #include <<a href="qprinter-h.html">ntqprinter.h</a>> #include <<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> -#include <<a href="qpaintdevicemetrics-h.html">ntqpaintdevicemetrics.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> +#include <<a href="tqpaintdevicemetrics-h.html">tqpaintdevicemetrics.h</a>> #include <ctype.h> @@ -344,13 +344,13 @@ void <a name="f358"></a>HelpWindow::print() <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="ntqpainter.html">TQPainter</a> p( &printer ); -<a name="x1002"></a> if( !p.<a href="ntqpainter.html#isActive">isActive</a>() ) // starting printing failed + <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="ntqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics(p.<a href="ntqpainter.html#device">device</a>()); -<a name="x997"></a> int dpiy = metrics.<a href="ntqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); +<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="ntqpaintdevicemetrics.html#width">width</a>() - 2*margin, metrics.<a href="ntqpaintdevicemetrics.html#height">height</a>() - 2*margin ); +<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="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>(), @@ -362,9 +362,9 @@ void <a name="f358"></a>HelpWindow::print() 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="ntqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() ); -<a name="x1018"></a><a name="x1001"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.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="ntqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) ); + 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>() ) break; <a name="x1005"></a> printer.<a href="ntqprinter.html#newPage">newPage</a>(); |