From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/simple-application.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/html/simple-application.html') diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index e9f951822..b667b00a0 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -453,16 +453,16 @@ and implicitly changes the window system caption to the new name. printer->setFullPage( TRUE ); if ( printer->setup(this) ) { // printer dialog statusBar()->message( "Printing..." ); - TQPainter p; - if( !p.begin( printer ) ) { // paint on printer + TQPainter p; + if( !p.begin( printer ) ) { // paint on printer statusBar()->message( "Printing aborted", 2000 ); return; } - TQPaintDeviceMetrics metrics( p.device() ); - int dpiy = metrics.logicalDpiY(); + TQPaintDeviceMetrics metrics( p.device() ); + int dpiy = metrics.logicalDpiY(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins - TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); + TQRect view( margin, margin, metrics.width() - 2*margin, metrics.height() - 2*margin ); TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(e->text()), TQFont(), e->context(), @@ -474,9 +474,9 @@ and implicitly changes the window system caption to the new name. do { richText.draw( &p, margin, margin, view, colorGroup() ); view.moveBy( 0, view.height() ); - p.translate( 0 , -view.height() ); - p.drawText( view.right() - p.fontMetrics().width( TQString::number( page ) ), - view.bottom() + p.fontMetrics().ascent() + 5, TQString::number( page ) ); + p.translate( 0 , -view.height() ); + p.drawText( view.right() - p.fontMetrics().width( TQString::number( page ) ), + view.bottom() + p.fontMetrics().ascent() + 5, TQString::number( page ) ); if ( view.top() - margin >= richText.height() ) break; printer->newPage(); -- cgit v1.2.3