From 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 12:56:43 +0900 Subject: Rename text nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/qdir-example.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/qdir-example.html') diff --git a/doc/html/qdir-example.html b/doc/html/qdir-example.html index b540a69a2..ffd1d77f9 100644 --- a/doc/html/qdir-example.html +++ b/doc/html/qdir-example.html @@ -49,10 +49,10 @@ body { background: #ffffff; color: black; } #include "ntqdir.h" #include <ntqapplication.h> -#include <ntqtextview.h> +#include <tqtextview.h> #include <ntqfileinfo.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqhbox.h> #include <ntqspinbox.h> #include <ntqlabel.h> @@ -64,7 +64,7 @@ body { background: #ffffff; color: black; } #include <ntqpushbutton.h> #include <ntqtoolbutton.h> #include <ntqfile.h> -#include <ntqtextstream.h> +#include <tqtextstream.h> #include <ntqtooltip.h> #include <stdlib.h> @@ -147,8 +147,8 @@ void PixmapView::setPixmap( const TQ : TQWidgetStack( parent ) { normalText = new TQMultiLineEdit( this ); - normalText->setReadOnly( TRUE ); - html = new TQTextView( this ); + normalText->setReadOnly( TRUE ); + html = new TQTextView( this ); pixmap = new PixmapView( this ); raiseWidget( normalText ); } @@ -159,7 +159,7 @@ void Preview::showPreview( const TQUrl< TQString path = u.path(); TQFileInfo fi( path ); if ( fi.isFile() && (int)fi.size() > size * 1000 ) { - normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); + normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) ); raiseWidget( normalText ); return; } @@ -169,29 +169,29 @@ void Preview::showPreview( const TQUrl< if ( fi.isFile() ) { TQFile f( path ); if ( f.open( IO_ReadOnly ) ) { - TQTextStream ts( &f ); - TQString text = ts.read(); + TQTextStream ts( &f ); + TQString text = ts.read(); f.close(); if ( fi.extension().lower().contains( "htm" ) ) { - TQString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() ); - html->setText( text, url ); + TQString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() ); + html->setText( text, url ); raiseWidget( html ); return; } else { - normalText->setText( text ); + normalText->setText( text ); raiseWidget( normalText ); return; } } } - normalText->setText( TQString::null ); + normalText->setText( TQString::null ); raiseWidget( normalText ); } else { pixmap->setPixmap( pix ); raiseWidget( pixmap ); } } else { - normalText->setText( "I only show local files!" ); + normalText->setText( "I only show local files!" ); raiseWidget( normalText ); } } -- cgit v1.2.3