diff options
Diffstat (limited to 'doc/html/mdi-example.html')
-rw-r--r-- | doc/html/mdi-example.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index ebaef0479..0cd78e00e 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -80,7 +80,7 @@ signals: private: <a href="tqtextedit.html">TQTextEdit</a>* medit; - <a href="ntqmovie.html">TQMovie</a> * mmovie; + <a href="tqmovie.html">TQMovie</a> * mmovie; <a href="tqstring.html">TQString</a> filename; }; @@ -141,7 +141,7 @@ private: #include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> -#include <<a href="qmovie-h.html">ntqmovie.h</a>> +#include <<a href="tqmovie-h.html">tqmovie.h</a>> #include <<a href="tqfile-h.html">tqfile.h</a>> #include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> @@ -153,8 +153,8 @@ private: #include <<a href="qaccel-h.html">ntqaccel.h</a>> #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="tqtextedit-h.html">tqtextedit.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 <<a href="qwhatsthis-h.html">ntqwhatsthis.h</a>> #include <<a href="tqobjectlist-h.html">tqobjectlist.h</a>> #include <<a href="qvbox-h.html">ntqvbox.h</a>> @@ -462,7 +462,7 @@ void <a name="f548"></a>MDIWindow::load( const <a href="tqstring.html">TQString< <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>(tmp); <a name="x2079"></a> medit-><a href="tqwidget.html#hide">hide</a>(); delete medit; - <a href="ntqmovie.html">TQMovie</a> * qm=new <a href="ntqmovie.html">TQMovie</a>(fn); + <a href="tqmovie.html">TQMovie</a> * qm=new <a href="tqmovie.html">TQMovie</a>(fn); <a name="x2082"></a> tmp-><a href="tqwidget.html#setBackgroundMode">setBackgroundMode</a>(TQWidget::NoBackground); tmp-><a href="tqwidget.html#show">show</a>(); mmovie=qm; @@ -523,13 +523,13 @@ void <a name="f551"></a>MDIWindow::print( <a href="ntqprinter.html">TQPrinter</a <a name="x2052"></a> if ( printer-><a href="ntqprinter.html#setup">setup</a>(this) ) { // printer dialog <a name="x2051"></a> printer-><a href="ntqprinter.html#setFullPage">setFullPage</a>( TRUE ); emit message( "Printing...", 0 ); - <a href="ntqpainter.html">TQPainter</a> p; - if ( !p.<a href="ntqpainter.html#begin">begin</a>( printer ) ) + <a href="tqpainter.html">TQPainter</a> p; + if ( !p.<a href="tqpainter.html#begin">begin</a>( printer ) ) return; // paint on printer -<a name="x2044"></a> <a href="ntqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics( p.<a href="ntqpainter.html#device">device</a>() ); -<a name="x2041"></a> int dpiy = metrics.<a href="ntqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); +<a name="x2044"></a> <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics( p.<a href="tqpainter.html#device">device</a>() ); +<a name="x2041"></a> int dpiy = metrics.<a href="tqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins -<a name="x2042"></a><a name="x2040"></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="x2042"></a><a name="x2040"></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="x2067"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( TQStyleSheet::<a href="tqstylesheet.html#convertFromPlainText">convertFromPlainText</a>(medit-><a href="tqtextedit.html#text">text</a>()), TQFont(), <a name="x2068"></a> medit-><a href="tqtextedit.html#context">context</a>(), @@ -541,9 +541,9 @@ void <a name="f551"></a>MDIWindow::print( <a href="ntqprinter.html">TQPrinter</a do { <a name="x2061"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); <a name="x2057"></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="x2066"></a><a name="x2046"></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 ) ), - 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="x2066"></a><a name="x2046"></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 ) ), + view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="tqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number( page ) ); <a name="x2062"></a> if ( view.<a href="ntqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) break; <a href="tqstring.html">TQString</a> msg( "Printing (page " ); |