From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/qaction-application-example.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/html/qaction-application-example.html') diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html index 3da2205d4..101052362 100644 --- a/doc/html/qaction-application-example.html +++ b/doc/html/qaction-application-example.html @@ -185,7 +185,7 @@ private: fileCloseAction = new TQAction( "Close", "&Close", CTRL+Key_W, this, "close" ); connect( fileCloseAction, TQ_SIGNAL( activated() ) , this, - TQ_SLOT( close() ) ); + TQ_SLOT( close() ) ); fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "quit" ); @@ -233,11 +233,11 @@ private: // create and define the central widget e = new TQTextEdit( this, "editor" ); - e->setFocus(); + e->setFocus(); setCentralWidget( e ); statusBar()->message( "Ready", 2000 ); - resize( 450, 600 ); + resize( 450, 600 ); } @@ -251,7 +251,7 @@ ApplicationWindow::~ApplicationWindow() void ApplicationWindow::newDoc() { ApplicationWindow *ed = new ApplicationWindow; - ed->show(); + ed->show(); } void ApplicationWindow::choose() @@ -274,7 +274,7 @@ void ApplicationWindow::load( const TQTextStream ts( &f ); e->setText( ts.read() ); e->setModified( FALSE ); - setCaption( fileName ); + setCaption( fileName ); statusBar()->message( "Loaded document " + fileName, 2000 ); } @@ -300,7 +300,7 @@ void ApplicationWindow::save() e->setModified( FALSE ); - setCaption( filename ); + setCaption( filename ); statusBar()->message( TQString( "File %1 saved" ).arg( filename ), 2000 ); } @@ -360,7 +360,7 @@ void ApplicationWindow::print() } } -void ApplicationWindow::closeEvent( TQCloseEvent* ce ) +void ApplicationWindow::closeEvent( TQCloseEvent* ce ) { if ( !e->isModified() ) { ce->accept(); @@ -419,8 +419,8 @@ void ApplicationWindow::aboutTQt() int main( int argc, char ** argv ) { TQApplication a( argc, argv ); ApplicationWindow * mw = new ApplicationWindow(); - mw->setCaption( "Document 1" ); - mw->show(); + mw->setCaption( "Document 1" ); + mw->show(); a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) ); return a.exec(); } -- cgit v1.2.1