diff options
Diffstat (limited to 'doc/html/tqaction-application-example.html')
-rw-r--r-- | doc/html/tqaction-application-example.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/tqaction-application-example.html b/doc/html/tqaction-application-example.html index 3e8d44773..baab0a2f6 100644 --- a/doc/html/tqaction-application-example.html +++ b/doc/html/tqaction-application-example.html @@ -121,9 +121,9 @@ 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="tqwhatsthis-h.html">tqwhatsthis.h</a>> #include <<a href="tqaction-h.html">tqaction.h</a>> -#include <<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>> +#include <<a href="tqsimplerichtext-h.html">tqsimplerichtext.h</a>> #include "filesave.xpm" #include "fileopen.xpm" @@ -334,21 +334,21 @@ void <a name="f381"></a>ApplicationWindow::print() <a name="x1142"></a> int dpiy = metrics.<a href="tqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins <a name="x1143"></a><a name="x1141"></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="x1163"></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="x1163"></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="x1164"></a> e-><a href="tqtextedit.html#context">context</a>(), <a name="x1169"></a> e-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), <a name="x1166"></a> e-><a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), view.<a href="tqrect.html#height">height</a>() ); -<a name="x1160"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &p, view.<a href="tqrect.html#width">width</a>() ); +<a name="x1160"></a> richText.<a href="tqsimplerichtext.html#setWidth">setWidth</a>( &p, view.<a href="tqrect.html#width">width</a>() ); int page = 1; do { -<a name="x1158"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); +<a name="x1158"></a> richText.<a href="tqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); <a name="x1154"></a> view.<a href="tqrect.html#moveBy">moveBy</a>( 0, view.<a href="tqrect.html#height">height</a>() ); <a name="x1148"></a> p.<a href="tqpainter.html#translate">translate</a>( 0 , -view.<a href="tqrect.html#height">height</a>() ); <a name="x1155"></a><a name="x1147"></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="x1152"></a> view.<a href="tqrect.html#bottom">bottom</a>() + p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number( page ) ); -<a name="x1159"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) +<a name="x1159"></a> if ( view.<a href="tqrect.html#top">top</a>() - margin >= richText.<a href="tqsimplerichtext.html#height">height</a>() ) break; <a name="x1149"></a> printer-><a href="tqprinter.html#newPage">newPage</a>(); page++; |