From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/mdi-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/mdi-example.html') diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 36aa1ec7c..aa29c5772 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -144,7 +144,7 @@ private: #include <tqmovie.h> #include <tqfile.h> #include <tqfiledialog.h> -#include <ntqlabel.h> +#include <tqlabel.h> #include <tqstatusbar.h> #include <ntqmessagebox.h> #include <tqprinter.h> @@ -155,10 +155,10 @@ private: #include <tqtextedit.h> #include <tqpainter.h> #include <tqpaintdevicemetrics.h> -#include <ntqwhatsthis.h> +#include <tqwhatsthis.h> #include <tqobjectlist.h> #include <ntqvbox.h> -#include <ntqsimplerichtext.h> +#include <tqsimplerichtext.h> #include "filesave.xpm" #include "fileopen.xpm" @@ -203,13 +203,13 @@ const char * filePrintText = "Click this button to print the file you " TQToolButton * filePrint = new TQToolButton( printIcon, "Print File", TQString::null, this, TQ_SLOT(print()), fileTools, "print file" ); - TQWhatsThis::add( filePrint, filePrintText ); + TQWhatsThis::add( filePrint, filePrintText ); #endif (void)TQWhatsThis::whatsThisButton( fileTools ); - TQWhatsThis::add( fileOpen, fileOpenText ); - TQWhatsThis::add( fileSave, fileSaveText ); + TQWhatsThis::add( fileOpen, fileOpenText ); + TQWhatsThis::add( fileSave, fileSaveText ); TQPopupMenu * file = new TQPopupMenu( this ); menuBar()->insertItem( "&File", file ); @@ -530,21 +530,21 @@ void MDIWindow::print( TQPrinter 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 ); - TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(medit->text()), + TQSimpleRichText richText( TQStyleSheet::convertFromPlainText(medit->text()), TQFont(), medit->context(), medit->styleSheet(), medit->mimeSourceFactory(), view.height() ); - richText.setWidth( &p, view.width() ); + richText.setWidth( &p, view.width() ); int page = 1; do { - richText.draw( &p, margin, margin, view, colorGroup() ); + 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 ) ); - if ( view.top() - margin >= richText.height() ) + if ( view.top() - margin >= richText.height() ) break; TQString msg( "Printing (page " ); msg += TQString::number( ++pageNo ); -- cgit v1.2.3