summaryrefslogtreecommitdiffstats
path: root/doc/html/simple-application-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/simple-application-example.html')
-rw-r--r--doc/html/simple-application-example.html32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html
index b44d5a68e..e8c2e5978 100644
--- a/doc/html/simple-application-example.html
+++ b/doc/html/simple-application-example.html
@@ -80,7 +80,7 @@ private slots:
void aboutTQt();
private:
- <a href="ntqprinter.html">TQPrinter</a> *printer;
+ <a href="tqprinter.html">TQPrinter</a> *printer;
<a href="tqtextedit.html">TQTextEdit</a> *e;
<a href="tqstring.html">TQString</a> filename;
};
@@ -104,7 +104,7 @@ private:
#include "application.h"
#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
+#include &lt;<a href="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="tqtoolbar-h.html">tqtoolbar.h</a>&gt;
#include &lt;<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
@@ -114,7 +114,7 @@ private:
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
+#include &lt;<a href="tqprinter-h.html">tqprinter.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qaccel-h.html">ntqaccel.h</a>&gt;
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
@@ -130,8 +130,8 @@ private:
<a name="f459"></a>ApplicationWindow::ApplicationWindow()
: <a href="tqmainwindow.html">TQMainWindow</a>( 0, "example application main window", WDestructiveClose | WGroupLeader )
{
- printer = new <a href="ntqprinter.html">TQPrinter</a>( TQPrinter::HighResolution );
- <a href="ntqpixmap.html">TQPixmap</a> openIcon, saveIcon, printIcon;
+ printer = new <a href="tqprinter.html">TQPrinter</a>( TQPrinter::HighResolution );
+ <a href="tqpixmap.html">TQPixmap</a> openIcon, saveIcon, printIcon;
<a href="tqtoolbar.html">TQToolBar</a> * fileTools = new <a href="tqtoolbar.html">TQToolBar</a>( this, "file operations" );
<a name="x1590"></a> fileTools-&gt;<a href="tqtoolbar.html#setLabel">setLabel</a>( "File Operations" );
@@ -308,8 +308,8 @@ void <a name="f464"></a>ApplicationWindow::saveAs()
void <a name="f465"></a>ApplicationWindow::print()
{
-<a name="x1568"></a> printer-&gt;<a href="ntqprinter.html#setFullPage">setFullPage</a>( TRUE );
-<a name="x1569"></a> if ( printer-&gt;<a href="ntqprinter.html#setup">setup</a>(this) ) { // printer dialog
+<a name="x1568"></a> printer-&gt;<a href="tqprinter.html#setFullPage">setFullPage</a>( TRUE );
+<a name="x1569"></a> if ( printer-&gt;<a href="tqprinter.html#setup">setup</a>(this) ) { // printer dialog
<a href="tqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Printing..." );
<a href="tqpainter.html">TQPainter</a> p;
if( !p.<a href="tqpainter.html#begin">begin</a>( printer ) ) { // paint on printer
@@ -320,24 +320,24 @@ void <a name="f465"></a>ApplicationWindow::print()
<a name="x1563"></a> <a href="tqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics( p.<a href="tqpainter.html#device">device</a>() );
<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="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="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-&gt;<a href="tqtextedit.html#text">text</a>()),
TQFont(),
<a name="x1582"></a> e-&gt;<a href="tqtextedit.html#context">context</a>(),
<a name="x1587"></a> e-&gt;<a href="tqtextedit.html#styleSheet">styleSheet</a>(),
<a name="x1584"></a> e-&gt;<a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
- view.<a href="ntqrect.html#height">height</a>() );
-<a name="x1578"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="ntqrect.html#width">width</a>() );
+ view.<a href="tqrect.html#height">height</a>() );
+<a name="x1578"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;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>( &amp;p, margin, margin, view, colorGroup() );
-<a name="x1572"></a> view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() );
-<a name="x1566"></a> p.<a href="tqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.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="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="x1570"></a> view.<a href="ntqrect.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="ntqrect.html#top">top</a>() - margin &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
+<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 &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
break;
-<a name="x1567"></a> printer-&gt;<a href="ntqprinter.html#newPage">newPage</a>();
+<a name="x1567"></a> printer-&gt;<a href="tqprinter.html#newPage">newPage</a>();
page++;
} while (TRUE);