From 252a2ec8b0f0f9cf20c947737087b24a8185b588 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 10 Jul 2024 18:56:16 +0900 Subject: Rename IO and network class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/addressbook-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/addressbook-example.html') diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index 1c838d793..c6210bcbe 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -110,7 +110,7 @@ protected: #include <tqmenubar.h> #include <tqstatusbar.h> #include <ntqapplication.h> -#include <ntqfiledialog.h> +#include <tqfiledialog.h> ABMainWindow::ABMainWindow() : TQMainWindow( 0, "example addressbook application" ), @@ -171,7 +171,7 @@ void ABMainWindow::fileNew() void ABMainWindow::fileOpen() { - TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this ); + TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this ); if ( !fn.isEmpty() ) { filename = fn; view->load( filename ); @@ -190,7 +190,7 @@ void ABMainWindow::fileSave() void ABMainWindow::fileSaveAs() { - TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this ); + TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this ); if ( !fn.isEmpty() ) { filename = fn; fileSave(); @@ -289,7 +289,7 @@ protected: #include <ntqlineedit.h> #include <ntqlabel.h> #include <ntqcheckbox.h> -#include <ntqfile.h> +#include <tqfile.h> #include <tqtextstream.h> ABCentralWidget::ABCentralWidget( TQWidget *parent, const char *name ) @@ -309,8 +309,8 @@ void ABCentralWidget::save( const TQS if ( !listView->firstChild() ) return; - TQFile f( filename ); - if ( !f.open( IO_WriteOnly ) ) + TQFile f( filename ); + if ( !f.open( IO_WriteOnly ) ) return; TQTextStream t( &f ); @@ -322,15 +322,15 @@ void ABCentralWidget::save( const TQS for ( unsigned int i = 0; i < 4; i++ ) t << it.current()->text( i ) << "\n"; - f.close(); + f.close(); } void ABCentralWidget::load( const TQString &filename ) { listView->clear(); - TQFile f( filename ); - if ( !f.open( IO_ReadOnly ) ) + TQFile f( filename ); + if ( !f.open( IO_ReadOnly ) ) return; TQTextStream t( &f ); @@ -342,7 +342,7 @@ void ABCentralWidget::load( const TQS item->setText( i, t.readLine() ); } - f.close(); + f.close(); } void ABCentralWidget::setupTabWidget() -- cgit v1.2.1