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/tqaction-application-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/tqaction-application-example.html') diff --git a/doc/html/tqaction-application-example.html b/doc/html/tqaction-application-example.html index 0adf7d842..d81f8b19c 100644 --- a/doc/html/tqaction-application-example.html +++ b/doc/html/tqaction-application-example.html @@ -111,8 +111,8 @@ private: #include <tqpopupmenu.h> #include <tqmenubar.h> #include <tqtextedit.h> -#include <ntqfile.h> -#include <ntqfiledialog.h> +#include <tqfile.h> +#include <tqfiledialog.h> #include <tqstatusbar.h> #include <ntqmessagebox.h> #include <ntqprinter.h> @@ -256,7 +256,7 @@ void ApplicationWindow::newDoc() void ApplicationWindow::choose() { - TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, + TQString fn = TQFileDialog::getOpenFileName( TQString::null, TQString::null, this); if ( !fn.isEmpty() ) load( fn ); @@ -267,8 +267,8 @@ void ApplicationWindow::choose() void ApplicationWindow::load( const TQString &fileName ) { - TQFile f( fileName ); - if ( !f.open( IO_ReadOnly ) ) + TQFile f( fileName ); + if ( !f.open( IO_ReadOnly ) ) return; TQTextStream ts( &f ); @@ -287,8 +287,8 @@ void ApplicationWindow::save() } TQString text = e->text(); - TQFile f( filename ); - if ( !f.open( IO_WriteOnly ) ) { + TQFile f( filename ); + if ( !f.open( IO_WriteOnly ) ) { statusBar()->message( TQString("Could not write to %1").arg(filename), 2000 ); return; @@ -296,7 +296,7 @@ void ApplicationWindow::save() TQTextStream t( &f ); t << text; - f.close(); + f.close(); e->setModified( FALSE ); @@ -308,7 +308,7 @@ void ApplicationWindow::save() void ApplicationWindow::saveAs() { - TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, + TQString fn = TQFileDialog::getSaveFileName( TQString::null, TQString::null, this ); if ( !fn.isEmpty() ) { filename = fn; -- cgit v1.2.1